custom_interactive_viewer
0.2.0, released 2 months ago by ali-hnaineh.dev
Customizable alternative to InteractiveViewer with gesture, rotation, and keyboard controls
What it does
Provides a camera and input package for images, documents, maps, and diagrams. It supports mouse, touch, trackpad, wheel, and keyboard input, focal-point zoom, rotation, camera animation, and configurable bounds.
AI-written summary of version 0.2.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need advanced zoom, rotation, and programmatic camera manipulation for images, maps, or diagrams.
- You require keyboard navigation and precise viewport-based scene canvas control.
- Flutter's standard InteractiveViewer does not meet your gesture or bounds constraints.
Skip it when
- You only need standard, out-of-the-box pinch-to-zoom without extra customization.
- Your project targets a version older than Flutter 3.41 or Dart 3.11.
Strengths
- Advanced keyboard navigation, gesture controls, and rotation support.
- Programmatic transformations with a dedicated controller.
- Viewport snapshots and coordinate conversion helpers for scene canvases.
Weaknesses
- Requires recent Flutter (3.41+) and Dart (3.11+) versions.
- License is unknown.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
CustomInteractiveViewer(
child: Image.asset('assets/map.png'),
zoomConfig: const ZoomConfig(minScale: .1, maxScale: 8),
)Alternatives
Packages that do the same job and could replace custom_interactive_viewer.
- animated_segmented_tab_control
A customizable segmented tab control widget with smooth animations.
83Compare - flutter_joystick
A virtual joystick widget for Flutter applications with high customization.
81Compare - flash
Customizable alert and toast widget for Flutter
50Compare - android_gesture_exclusion
Flutter plugin to exclude Android system gesture navigation in specific UI areas.
50Compare
Works with
Packages commonly used together with custom_interactive_viewer: ones it builds on, ones built on it, and its own family.