Package selection guidance compiled from public package information, community data, and project usage.
The gal package is a Flutter plugin that enables saving images and videos to the device's photo gallery with built-in permission handling. It supports Android, iOS, macOS, and Windows, making it ideal for apps that require media export functionality. The plugin simplifies the process of accessing the gallery by managing permissions automatically, reducing boilerplate code. It integrates seamlessly into multimedia workflows, especially in apps involving image or video capture, editing, or sharing.
Use cases
Saving captured images/videos to the gallery
Automating media export after editing
Integrating gallery access in cross-platform apps
Handling permission requests for media storage
Enabling user-friendly media sharing
Key features
Automatic permission handling
Cross-platform support (Android, iOS, macOS, Windows)
Simple API for saving media
Built-in error management
Lightweight and easy to integrate
Suitable for
Flutter apps with media capture features
Image or video editing tools
Apps requiring gallery access
Developers seeking minimal setup for media saving
Cross-platform multimedia applications
Considerations
Requires appropriate permissions in platform-specific config files
May need additional handling for specific OS behaviors
Limited to basic save operations without advanced metadata control
Depends on external repository for updates
Not designed for media selection or browsing
Original README
Original README snapshot from the linked source repository. Visit the repository for the latest content.
Gal
Dart3 plugin for saving image or video to photos gallery
[!WARNING]
Flutter currently has a fatal problem for loading info.plist, which may cause permission denials or app crashes in some code editors.
Windows Setup
Update Visual Studio to the latest version for using C++ 20.
[!TIP]
If you can't compile, try downloading the latest Windows SDK:
Open Visual Studio Installer
Select Modify
Select Windows SDK
Linux Setup
Linux is not officially supported, but can be added through a non-endorsed federated plugin.
See: gal_linux
💻 Usage
Save from Local
// Save Image (Supports two ways)awaitGal.putImage('$filePath');
awaitGal.putImageBytes('$uint8List');
// Save VideoawaitGal.putVideo('$filePath');
// Save to AlbumawaitGal.putImage('$filePath', album: '$album')
...