💄 Drawer won't slide to open if page can go back

💄 Fix album loading indicator
This commit is contained in:
2024-12-01 11:05:54 +08:00
parent a865c4d34b
commit bb23a12be3
2 changed files with 6 additions and 1 deletions

View File

@ -65,6 +65,9 @@ class AppRootScaffold extends StatelessWidget {
NavigationProvider.kShowBottomNavScreen.contains(routeName)
? ResponsiveBreakpoints.of(context).smallerOrEqualTo(MOBILE)
: false;
final isPopable = !NavigationProvider.kAllDestination
.map((ele) => ele.screen)
.contains(routeName);
final innerWidget = isCollapseDrawer
? body
@ -97,6 +100,7 @@ class AppRootScaffold extends StatelessWidget {
],
),
drawer: !isExpandDrawer ? AppNavigationDrawer() : null,
drawerEdgeDragWidth: isPopable ? 0 : null,
bottomNavigationBar:
isShowBottomNavigation ? AppBottomNavigationBar() : null,
),