Using 2 packages and creating 1 custom action: Custom action (named savePhoto)
import 'package:image_gallery_saver/image_gallery_saver.dart';
import 'package:dio/dio.dart';
Future savePhoto(String imageUrl) async {
var response = await Dio()
.get(imageUrl, options: Options(responseType: ResponseType.bytes));
final result = await ImageGallerySaver.saveImage(
Uint8List.fromList(response.data),
);
print(result);
}
Don't forget to add 2 dependancies:Ā image_gallery_saver: ^1.7.1 dio: ^4.0.0Add 1 parameter:Ā String(ImagePath) imageUrlRefer to the photo below to double check[įį ³įį ³į į µį«įį £įŗ 2023-05-07 įį ©įį ® 3.21.59.png]Lastly you should add Permission: ⢠Setting > Project Setup > Permissions > Photo Library: Turn it on and enter a message.