Erweiterungen

This commit is contained in:
Sven committed 2024-02-08 10:22:15 +01:00
1 parent 85d6d49258
commit 286c6537b9
2 files changed
+23 -3

No files matched your search

+10 -3
View File
@@ -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),