image_zoomer 0.0.3 copy "image_zoomer: ^0.0.3" to clipboard
image_zoomer: ^0.0.3 copied to clipboard

A new Flutter package for a customized Image Zoom in/out Dialog.

example/lib/main.dart

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

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

class MyApp extends StatelessWidget {
  const MyApp({super.key});
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      debugShowCheckedModeBanner: false,
      theme: ThemeData(
        primarySwatch: Colors.green,
      ),
      home: const MyHomePage(title: 'Image Zoomer'),
    );
  }
}

class MyHomePage extends StatelessWidget {
  const MyHomePage({super.key, required this.title});

  final String title;

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(centerTitle: true, title: Text(title)),
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: <Widget>[
            ElevatedButton(
              child: const Text('Show Image Zoomer'),
              onPressed: () {
                showDialog(
                    context: context,
                    builder: (_) => const ImageZoomer(
                          image:
                              "https://i.pinimg.com/550x/ae/de/a9/aedea9ea9db181dcbc0ad146c87d8842.jpg",
                          imageType: ImageType.network,
                        ));
              },
            ),
          ],
        ),
      ),
    );
  }
}
2
likes
140
pub points
61%
popularity

Publisher

unverified uploader

A new Flutter package for a customized Image Zoom in/out Dialog.

Repository (GitHub)
View/report issues

Documentation

API reference

License

unknown (license)

Dependencies

flutter

More

Packages that depend on image_zoomer