Skip to content
Discussion options

You must be logged in to vote

I fixed this by implementing a custom user extension that supplies the control. Then I could write whatever code I wanted on the Flutter / Dart side.

The original plan was to just wrap the Flutter InteractiveViewer, like the Flet InteractiveViewer does, but add the event I wanted so I could call the callback on the Python side.

But actually, I came up with a better overall solution. As I said above, I wanted the zoom callback to do a specific thing: to counterscale some elements of a Flet Canvas so they stayed constant while the overall image zoomed in or out, accepting a slight delay would cause graphical glitches (the line thickness etc. would briefly change before popping back to their…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by arthur-tacca
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
help wanted Extra attention is needed
1 participant