Package selection guidance compiled from public package information, community data, and project usage.
The photo_gallery package is a Flutter plugin designed to access images and videos from the native gallery on Android and iOS devices. It provides a straightforward interface for retrieving media files, enabling developers to integrate gallery browsing and selection into their apps. The plugin leverages platform-specific APIs to ensure compatibility and performance across both operating systems. It's ideal for applications requiring media collection features such as photo sharing, profile picture uploads, or content creation tools. With minimal setup via pub add, it offers seamless integration into existing Flutter projects.
Use cases
Image and video selection from device gallery
Profile picture upload workflows
Media-rich app content creation
Photo sharing application development
User-generated content collection
Key features
Cross-platform support for Android and iOS
Simple API for accessing native gallery media
Supports both images and videos
Easy integration with flutter pub add
Relies on native platform APIs for reliability
Suitable for
Developers building media-heavy Flutter apps
Apps needing gallery access for user uploads
Social media or content creation platforms
Mobile apps requiring image/video picker functionality
Projects prioritizing native gallery integration
Considerations
Requires appropriate permissions on Android and iOS
Limited to retrieving media; no editing or cropping
Depends on native gallery availability and system permissions
May require additional handling for large media files
Not suitable for advanced media processing tasks
Original README
Original README snapshot from the linked source repository. Visit the repository for the latest content.
Photo Gallery
A Flutter plugin that retrieves images and videos from mobile native gallery.
Add the following keys to your Info.plist file, located in <project root>/ios/Runner/Info.plist:
NSPhotoLibraryUsageDescription - describe why your app needs permission for the photo library. This is called Privacy - Photo Library Usage Description in the visual editor.
finalList<int> data = await medium.getThumbnail();
finalList<int> data = awaitPhotoGallery.getThumbnail(mediumId: mediumId);
You can also specify thumbnail width and height on Android API 29 or higher; You can also specify thumbnail width, height and whether provider high quality or not on iOS:
finalList<int> data = awaitPhotoGallery.getAlbumThumbnail(albumId: albumId);
You can also specify thumbnail width and height on Android API 29 or higher; You can also specify thumbnail width, height and whether provider high quality or not on iOS: