Last updated:
0 purchases
flutter photo view
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
copied to clipboard
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
copied to clipboard
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
);
copied to clipboard
Example #
Additional information #
Email: [email protected]
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.