Cleanup
This commit is contained in:
1 parent
8e5462bc91
commit
e7409ac26b
13 files changed
+467
-88
No files matched your search
+4
-9
@@ -132,15 +132,10 @@ class _MainState extends State<Main> {
|
||||
|
||||
return ColoredSafeArea(
|
||||
key: GlobalKey(),
|
||||
child: WillPopScope(
|
||||
onWillPop: () async {
|
||||
if (contentStack.isNotEmpty) {
|
||||
_popContentView();
|
||||
|
||||
return false;
|
||||
} else {
|
||||
return true;
|
||||
}
|
||||
child: PopScope(
|
||||
canPop: contentStack.isNotEmpty,
|
||||
onPopInvoked: (didPop) => {
|
||||
_popContentView()
|
||||
},
|
||||
child: Scaffold(
|
||||
appBar: PreferredSize(
|
||||
|
||||
Reference in new issue
Block a user