photo_manager_image_provider
2.2.0, released 2 years ago by fluttercandies.com
Provides an ImageProvider for AssetEntity from photo_manager
What it does
It wraps photo_manager's AssetEntity into a Flutter ImageProvider, allowing images to be displayed with Image widgets. It also offers a convenience widget AssetEntityImage.
AI-written summary of version 2.2.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to display photos from photo_manager in a Flutter app
- You want a simple ImageProvider without custom decoding logic
Skip it when
- You need advanced image caching or transformations beyond basic display
- You are already using a different image provider plugin
Strengths
- Simple API, integrates directly with photo_manager
- Supports async file type handling
- Provides progress handling and frame support
Weaknesses
- Limited to photo_manager assets only
- No advanced image manipulation features
- Requires photo_manager dependency
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
Add dependency in pubspec, import package, no additional permissions needed beyond photo_manager
```dart
import 'package:photo_manager/photo_manager.dart';
import 'package:photo_manager_image_provider/photo_manager_image_provider.dart';
Widget buildWidget(AssetEntity entity) {
return Image(image: AssetEntityImageProvider(entity));
}
```Alternatives
Packages that do the same job and could replace photo_manager_image_provider.
- image_picker
Allows picking images from gallery but not as ImageProvider for AssetEntity
94Compare
Works with
Packages commonly used together with photo_manager_image_provider: ones it builds on, ones built on it, and its own family.
- photo_managerphoto_manager_image_provider depends on itManage and retrieve photo, video, and audio assets on Android, iOS, macOS, and OpenHarmony.
- wechat_assets_pickerBuilt on photo_manager_image_providerAn asset picker widget for images, videos, and audio based on WeChat's UI.
- wechat_camera_pickerBuilt on photo_manager_image_providerA camera picker for Flutter projects based on WeChat's UI.
- gallery_media_pickerBuilt on photo_manager_image_providerA fully customizable and modern Flutter media picker inspired by Instagram. Supports image/video selection, multi-pick, album browsing, and high-performance grid previews using the photo_manager library.