Flutter page widget that is dismissed by swipe gestures, with Hero style animations, Inspired by Facebook and Instagram stories.
151
stars
39
forks
source link
Background color is black when enabled and transparent when disabled #5
Closed
mark8044 closed 2 years ago
I'm trying to use this to build an image viewer similar to twitter. So I put an
InteractiveViewer()
inside of it.Now it looks great and dismisses wonderfully.
The problem is that if you zoom on the image and then naturally try to pan the image it will also dismiss the image as is expected behavior.
So I've tried to build a system that will set the
disabled
flag anytime the image is zoom as follows:When I do this however, the screen has a black background, which then goes to transparent when the
disabled
flag is set using the setState()is this a bug or am I doing this wrong?