abhi_zoom 0.0.4
abhi_zoom: ^0.0.4 copied to clipboard
A lightweight Flutter widget that adds zoom and pan functionality to any child widget, ideal for images, maps, or custom interactive UIs.
import 'package:flutter/material.dart';
import 'package:abhi_zoom/abhi_zoom.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
body: Center(
child: AbhiZoom(
maxScale: 4.0,
minScale: 1.0,
child: Image.network(
'https://picsum.photos/400/400',
fit: BoxFit.cover,
),
),
),
),
);
}
}