Fix back arrow on mobile in settings
This commit is contained in:
parent
e084a1a31b
commit
129828cc5d
|
|
@ -125,9 +125,11 @@ class ListScaffold extends StatelessWidget {
|
||||||
);
|
);
|
||||||
|
|
||||||
return PopScope(
|
return PopScope(
|
||||||
canPop: false,
|
canPop: !isSettings,
|
||||||
onPopInvoked: (_) {
|
onPopInvoked: (_) {
|
||||||
store.dispatch(ViewDashboard());
|
if (!isSettings) {
|
||||||
|
store.dispatch(ViewDashboard());
|
||||||
|
}
|
||||||
},
|
},
|
||||||
child: FocusTraversalGroup(
|
child: FocusTraversalGroup(
|
||||||
child: Scaffold(
|
child: Scaffold(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue