interactive_viewer_vector 0.2.0
interactive_viewer_vector: ^0.2.0 copied to clipboard
Fork of the Flutter SDK InteractiveViewer that updates the RenderTransform directly (markNeedsPaint) instead of calling setState on every pan/zoom frame. No widget tree rebuild during pan/zoom interactions.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add interactive_viewer_vectorThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
interactive_viewer_vector: ^0.2.0Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:interactive_viewer_vector/interactive_viewer_vector.dart';