Open mihai-gabriel8 opened 3 months ago
Hi, thank you for reporting this.
Yes I guess you are right, the drawerEnableOpenDragGesture
parameter is missing. So you would change drawerEnableOpenDragGesture
depending on the platform, right?
Hi, thank you for reporting this.
Yes I guess you are right, the
drawerEnableOpenDragGesture
parameter is missing. So you would changedrawerEnableOpenDragGesture
depending on the platform, right?
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
drawer: context.read<NavigationHelper>().canOpenDrawer ? CustomDrawer() : null
But the user can see the drawer disappearing/appearing and it's not great
Aside from this, this package is awesome, thank you!
So that means that adding the drawerEnableOpenDragGesture
parameter solves the issues you currently encounter, right?
Can you check if setting drawerEdgeDragWidth: 0.0
works as well?
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