flutter_photo_view 1.0.3 copy "flutter_photo_view: ^1.0.3" to clipboard
flutter_photo_view: ^1.0.3 copied to clipboard

PhotoView aims to help produce an easily usable implementation of a zooming ImageView.

PhotoView Plugin for Flutter (iOS & Android)

Features #

PhotoView aims to help produce an easily usable implementation of a zooming ImageView.

Android use: https://github.com/Baseflow/PhotoView

iOS use: https://github.com/suzuki-0000/SKPhotoBrowser and https://github.com/huynguyencong/ImageScrollView

Getting started #

Run this command:

$ flutter pub add flutter_photo_view

This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):

dependencies:
    flutter_photo_view: ^1.0.3

NOTE: On Android, change MainActivity extend to FlutterFragmentActivity

Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.

Usage #

import 'package:photo_view/flutter_photo_view.dart';

PhotoViewController.presentWithUrls(
  photos: ['https://placehold.jp/150x150.png', 'https://placehold.jp/160x160.png'], 
  position: 0
);

Example #

Additional information #

Email: leonacky@gmail.com

5
likes
140
pub points
58%
popularity

Publisher

unverified uploader

PhotoView aims to help produce an easily usable implementation of a zooming ImageView.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on flutter_photo_view