photo_manager_image_provider 2.2.0 copy "photo_manager_image_provider: ^2.2.0" to clipboard
photo_manager_image_provider: ^2.2.0 copied to clipboard

A Flutter plugin, provide image_provider for photo_manager's AssetEntity.

image_provider for photo_manager #

The package is a plugin for photo_manager.

Its function is to make it easier to use ImageProvider in flutter to load images provided by photo_manager.

It was originally part of photo_manager, However, as the flutter sdk is updated, the obsolescence of the old API will cause incompatibility in photo_manager.

So, the parts related to image_provider are split here, which is used to ensure the compatibility between the photo_manager version and the flutter version.

See doc of compatibility to get plugin version compatibility information.

Usage #

dependencies:
  photo_manager_image_provider: #version
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),
  );
}

Widget buildWidget(AssetEntity entity) {
  return AssetEntityImage(entity);
}

10
likes
160
pub points
97%
popularity

Publisher

verified publisherfluttercandies.com

A Flutter plugin, provide image_provider for photo_manager's AssetEntity.

Repository (GitHub)
View/report issues
Contributing

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

flutter, photo_manager

More

Packages that depend on photo_manager_image_provider