We use the image_picker plugin to select images from the Android and iOS image library, but it can't save images to the gallery. This plugin can provide this feature.
Usage
To use this plugin, add image_gallery_saver as a dependency in your pubspec.yaml file. For example:
dependencies:image_gallery_saver:'^2.0.3'
iOS
Your project need create with swift.
Add the following keys to your Info.plist file, located in /ios/Runner/Info.plist:
NSPhotoLibraryAddUsageDescription - describe why your app needs permission for the photo library. This is called Privacy - Photo Library Additions Usage Description in the visual editor
Android
You need to ask for storage permission to save an image to the gallery. You can handle the storage permission using flutter_permission_handler.
In Android version 10, Open the manifest file and add this line to your application tag