Reputation: 7678
If you open the drawer by gesture in a sudden movement, the value of Scaffold.of(ctx).isDrawerOpen
does get updated. If you open the drawer by clicking in the AppBar or by gesture pressing until the drawer is full opended, it will turn true, but with a sudden movement it does not turn true. It's affecting an WillPopScope
from my app, when I'm checking if the drawer is open to not show a confirmation of leaving the current page to user.
I created a gist with sample of the code and a video showing this strange behaviour.
Am I doing something wrong here? Is there any other way to do this?
Upvotes: 0
Views: 203
Reputation: 2695
You're not doing anything wrong. This is already an open issue on Flutter repo. You can find it here.
You can share your experience to help reproduce the bug as seen on your video.
Upvotes: 2