-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Drawer drag is still available for navigated screen with navigation bar included #169
Comments
Hi, thank you for reporting this. Yes I guess you are right, the |
No, it has nothing to do with the platform In my code I created a Navigation Helper Cubit that keeps the state of the tabs, and if a Base Tab is navigated, I would disable the swipe Gesture for opening the drawer with adding the condition canOpenDrawer from the helper cubit to the drawerEnableOpenDragGesture parameter of the Scaffold The application that I am working on has a navigation flow similar to instagram/facebook, where the bottom navigation persists in all screens, but with this package I encountered a problem where the Drawer animation would start if a specific tab is navigated with the navigation bar included. I fixed this with the help of the Navigation Helper Cubit by doing some mapping and adding some conditions, running a function when a page is navigated/popped, but in an older version of this package I would nest the PersistentTabView widget inside a Scaffold (although it was not recommended) to also have a drawer. Currently I am hacking this by adding the condition
Aside from this, this package is awesome, thank you! |
So that means that adding the |
Can you check if setting |
Version
5.2.3
Flutter Doctor Output
What platforms are you seeing the problem on?
Android, iOS
What happened?
Hello there!
In my project, I used an older version of this package for the persistent navigation with bottom bar feature. However on my Base Page (where there are all the tabs included) I have a drawer in all tabs that should be disabled for the specific screen that is navigated.
When I navigate to the screen (I am now on second screen flow for that specific tab), if I try to swipe back (on iOS), the drawer opening animation starts. This behaviour shouldn't happen, and on a late version I used to have a Scaffold because it has the property
drawerEnableOpenDragGesture
, and I would handle the case where a specific page was navigated, and set it to false if the user is currently on the persistent navigation flow.I don't know if this should be a feature request, but perhaps the Widget PersistentTabView should also have a
drawerEnableOpenDragGesture
property?Steps to reproduce
Code to reproduce the problem
Relevant log output
No response
Screenshots
No response
The text was updated successfully, but these errors were encountered: