PhotoView Plugin for Flutter (iOS & Android)
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
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.
import 'package:photo_view/flutter_photo_view.dart';
PhotoViewController.presentWithUrls(
photos: ['https://placehold.jp/150x150.png', 'https://placehold.jp/160x160.png'],
position: 0
);
Email: [email protected]