Skip to content
pubscout

photo_manager_image_provider

2.2.0, released 2 years ago by fluttercandies.com

Provides an ImageProvider for AssetEntity from photo_manager

$ flutter pub add photo_manager_image_provider
Source repository

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

Works with

Packages commonly used together with photo_manager_image_provider: ones it builds on, ones built on it, and its own family.