photo_opener 0.2.3 copy "photo_opener: ^0.2.3" to clipboard
photo_opener: ^0.2.3 copied to clipboard

A Flutter package to preview and zoom images just like Telegram's media viewer. Supports assets and network images with pinch-to-zoom, swipe navigation, and smooth animations.

example/example.dart

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

export "../lib/photo_opener.dart";

void main() {
  runApp(const App());
}

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        body: Center(
          child: GestureDetector(
            onTap: () {
              print('Photo opened successfully!');
              onOpenPhoto(
                context: context,
                images: [
                  "asset/image1.png",
                  "asset/image2.png",
                  "asset/image3.png",
                ],
                isNetwork: false,
              );
            },
            child: const Text("OpenImage"),
          ),
        ),
      ),
    );
  }
}
14
likes
150
points
57
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter package to preview and zoom images just like Telegram's media viewer. Supports assets and network images with pinch-to-zoom, swipe navigation, and smooth animations.

Repository (GitHub)
View/report issues

Topics

#image #gallery #viewer #zoom #photos

Documentation

Documentation
API reference

License

MIT (license)

Dependencies

cached_network_image, flutter, photo_view

More

Packages that depend on photo_opener