fullscreen_image_viewer 1.2.0 copy "fullscreen_image_viewer: ^1.2.0" to clipboard
fullscreen_image_viewer: ^1.2.0 copied to clipboard

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

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:fullscreen_image_viewer/fullscreen_image_viewer.dart';

void main() {
  runApp(
    const ExampleApp(),
  );
}

class ExampleApp extends StatelessWidget {
  const ExampleApp({super.key});

  @override
  Widget build(BuildContext context) => MaterialApp(
        home: Builder(
          builder: (context) {
            final child = Hero(
              tag: 'hero',
              child: Image.network('https://placehold.co/600x400.png'),
            );

            return Scaffold(
              body: Align(
                alignment: Alignment.topCenter,
                child: Padding(
                  padding: const EdgeInsets.only(top: 100),
                  child: GestureDetector(
                    onTap: () {
                      FullscreenImageViewer.open(
                        context: context,
                        child: child,
                      );
                    },
                    child: child,
                  ),
                ),
              ),
            );
          },
        ),
      );
}
7
likes
160
points
576
downloads

Publisher

unverified uploader

Weekly Downloads

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

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on fullscreen_image_viewer