zoomable_widget 0.0.2 copy "zoomable_widget: ^0.0.2" to clipboard
zoomable_widget: ^0.0.2 copied to clipboard

CustomInteractiveViewer enhances Flutter apps with intuitive pan, zoom, and rotation. Perfect for image galleries, maps, and interactive content. It uniquely supports zooming with mouse scroll when th [...]

Custom Interactive Viewer #

A Flutter package providing a widget for interactive viewing of widgets with pan, zoom, and rotation gestures. Designed to enhance the Flutter InteractiveViewer widget with additional features like constrained zooming with mouse scroll when holding down the left mouse button, this package is perfect for applications requiring interactive elements, such as image galleries, maps, and document viewers.

Features #

  • Pan, zoom, and rotate interactions with custom constraints.
  • Enhanced mouse interaction: Zoom with mouse scroll when holding the left mouse button.
  • Easy integration with existing Flutter projects.
  • Customizable boundary margins, minimum and maximum scale values.
  • Supports both predefined child widgets and builder methods for dynamic content.

Getting Started #

To use the Custom Interactive Viewer in your Flutter app, add the package to your project's pubspec.yaml file:

dependencies:
  zoomable_widget: ^0.0.1

Then, import the package in your Dart file:

import 'package:custom_interactive_viewer/custom_interactive_viewer.dart';

Usage #

Zoomable( maxScale: 2.5, minScale: 0.8, panAxis: PanAxis.free, clipBehavior: Clip.hardEdge, child: Image.asset('assets/my_image.png'), ) For dynamic content based on the viewport, use the builder constructor:

Zoomable.builder( builder: (BuildContext context, Quad viewport) { // Return your widget based on the viewport. // This is ideal for large or infinite content like maps. return MyCustomWidget(viewport: viewport); }, )

5
likes
0
points
470
downloads

Publisher

unverified uploader

Weekly Downloads

CustomInteractiveViewer enhances Flutter apps with intuitive pan, zoom, and rotation. Perfect for image galleries, maps, and interactive content. It uniquely supports zooming with mouse scroll when the left button is held, boosting desktop interactivity. This widget is customizable for a seamless user experience, making it an essential addition to your UI toolkit

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, vector_math

More

Packages that depend on zoomable_widget