Flutter Fullscreen Image Viewer
A Flutter package that provides a customizable fullscreen image viewer with zoom and drag-to-dismiss features.
To use this package, add fullscreen_image_viewer
as a dependency in your pubspec.yaml
file.
dependencies:
fullscreen_image_viewer: ^0.0.1
Then run:
$ flutter pub get
Import the package in your Dart file:
import 'package:fullscreen_image_viewer/fullscreen_image_viewer.dart';
To open the fullscreen image viewer, simply call the open
method and pass the list of image URLs:
FullscreenImageViewer.open(
context: context,
child: Hero(
tag: 'hero',
child: Image.network('url.png'),
),
);
Please report any issues or provide feedback on the GitHub repository.
Feel free to contribute to the project and make it even better!
Run this command:
With Flutter:
$ flutter pub add fullscreen_image_viewer
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
fullscreen_image_viewer: ^0.0.6
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Now in your Dart code, you can use:
import 'package:fullscreen_image_viewer/fullscreen_image_viewer.dart';
Download details:
Author: anisovdev
Source: https://github.com/anisovdev/flutter-image-fullscreen-viewer