Overview
The add_to_gallery package enables Flutter applications to save images and videos to the native photo galleries on Android and iOS devices. It provides a simple interface to export media files, ensuring they appear in the user's default gallery app. This is particularly useful for apps that generate or capture media, such as photo editors, camera tools, or content creators. The package handles platform-specific differences seamlessly, offering consistent behavior across both operating systems. It does not modify the original file but creates a copy in the system’s media storage.
Use cases
- Saving captured photos from a camera
- Exporting edited images from a photo editor
- Adding generated videos to the user's library
- Sharing user-created content with the system gallery
- Automating media backup to native storage
Key features
- Cross-platform support for Android and iOS
- Saves copies to native galleries
- Minimal setup required
- Handles platform-specific file paths
- Preserves original media files
Suitable for
- Photo editing apps
- Camera integration features
- Content creation tools
- Apps needing media sharing
- Users wanting automatic gallery sync
Considerations
- Requires appropriate permissions on both platforms
- Does not support web or desktop
- File size may affect performance
- Limited customization of gallery metadata
- May require user confirmation on some devices
