Erweiterungen
This commit is contained in:
1 parent
85d6d49258
commit
286c6537b9
2 files changed
+23
-3
No files matched your search
+10
-3
@@ -186,9 +186,16 @@ class _MainState extends State<Main> with SingleTickerProviderStateMixin {
|
||||
|
||||
return ColoredSafeArea(
|
||||
key: GlobalKey(),
|
||||
child: PopScope(
|
||||
canPop: contentStack.isNotEmpty,
|
||||
onPopInvoked: (didPop) => {_popContentView()},
|
||||
child: WillPopScope(
|
||||
onWillPop: () async {
|
||||
if (contentStack.isNotEmpty) {
|
||||
_popContentView();
|
||||
|
||||
return false;
|
||||
} else {
|
||||
return true;
|
||||
}
|
||||
},
|
||||
child: Scaffold(
|
||||
appBar: PreferredSize(
|
||||
preferredSize: const Size.fromHeight(100),
|
||||
|
||||
Reference in new issue
Block a user