💄 Drawer won't slide to open if page can go back
💄 Fix album loading indicator
This commit is contained in:
parent
a865c4d34b
commit
bb23a12be3
@ -116,7 +116,8 @@ class _AlbumScreenState extends State<AlbumScreen> {
|
|||||||
),
|
),
|
||||||
if (_isBusy)
|
if (_isBusy)
|
||||||
SliverToBoxAdapter(
|
SliverToBoxAdapter(
|
||||||
child: const CircularProgressIndicator().padding(all: 24),
|
child:
|
||||||
|
const CircularProgressIndicator().padding(all: 24).center(),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
@ -65,6 +65,9 @@ class AppRootScaffold extends StatelessWidget {
|
|||||||
NavigationProvider.kShowBottomNavScreen.contains(routeName)
|
NavigationProvider.kShowBottomNavScreen.contains(routeName)
|
||||||
? ResponsiveBreakpoints.of(context).smallerOrEqualTo(MOBILE)
|
? ResponsiveBreakpoints.of(context).smallerOrEqualTo(MOBILE)
|
||||||
: false;
|
: false;
|
||||||
|
final isPopable = !NavigationProvider.kAllDestination
|
||||||
|
.map((ele) => ele.screen)
|
||||||
|
.contains(routeName);
|
||||||
|
|
||||||
final innerWidget = isCollapseDrawer
|
final innerWidget = isCollapseDrawer
|
||||||
? body
|
? body
|
||||||
@ -97,6 +100,7 @@ class AppRootScaffold extends StatelessWidget {
|
|||||||
],
|
],
|
||||||
),
|
),
|
||||||
drawer: !isExpandDrawer ? AppNavigationDrawer() : null,
|
drawer: !isExpandDrawer ? AppNavigationDrawer() : null,
|
||||||
|
drawerEdgeDragWidth: isPopable ? 0 : null,
|
||||||
bottomNavigationBar:
|
bottomNavigationBar:
|
||||||
isShowBottomNavigation ? AppBottomNavigationBar() : null,
|
isShowBottomNavigation ? AppBottomNavigationBar() : null,
|
||||||
),
|
),
|
||||||
|
Loading…
Reference in New Issue
Block a user