Package selection guidance compiled from public package information, community data, and project usage.
A Flutter plugin that enables access to images and videos stored in the native photo gallery on Android and iOS devices. It provides a simple interface to fetch media files, making it ideal for apps requiring gallery integration such as photo editors, social media platforms, or media management tools. The plugin leverages platform-specific APIs to ensure compatibility and performance across both major mobile operating systems.
Use cases
Integrating native gallery access in photo apps
Building media selection interfaces
Enabling image/video uploads from device library
Creating photo editing tools with local media
Developing social media app features
Key features
Cross-platform support for Android and iOS
Simple API for retrieving media files
Access to both images and videos
Native performance and reliability
Easy integration via pub.dev
Suitable for
Flutter developers building media-heavy apps
Apps needing gallery browsing capabilities
Projects requiring secure native media access
Developers seeking minimal setup for gallery integration
Considerations
Requires appropriate permissions on both platforms
May have limitations with large media libraries
Depends on native gallery APIs which can vary by device
Not suitable for cloud-based media retrieval
Limited customization of gallery UI
Original README
Original README snapshot from the linked source repository. Visit the repository for the latest content.
Photo Gallery Flutter
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 = awaitPhotoGalleryFlutter.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 = awaitPhotoGalleryFlutter.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: