A Flutter Package That Provides A Customizable Fullscreen Image Viewer

Flutter Fullscreen Image Viewer

A Flutter package that provides a customizable fullscreen image viewer with zoom and drag-to-dismiss features.

Features

  • Zoom: Pinch to zoom in and out of images for a closer look.
  • Drag to Dismiss: Swipe down to dismiss the fullscreen image view.

Getting Started

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

Usage

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'),
  ),
);

Issues and Feedback

Please report any issues or provide feedback on the GitHub repository.

Acknowledgments

  • Inspired by other Flutter image viewer packages.
  • Special thanks to the Flutter community.

Feel free to contribute to the project and make it even better!

Use this package as a library

Depend on it

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.

Import it

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

#flutter #image #fullscreen

A Flutter Package That Provides A Customizable Fullscreen Image Viewer
1.30 GEEK