new: disk view option & chore: flutter 3.16

This commit is contained in:
lollipopkit
2023-11-19 13:15:12 +08:00
parent d3a6b1639c
commit 5660c0e0db
12 changed files with 57 additions and 92 deletions

View File

@@ -78,7 +78,7 @@ class _LocalStoragePageState extends State<LocalStoragePage> {
),
body: FadeIn(
key: UniqueKey(),
child: _wrapPopScope(),
child: _buildBody(),
),
bottomNavigationBar: SafeArea(child: _buildPath()),
);
@@ -122,21 +122,6 @@ class _LocalStoragePageState extends State<LocalStoragePage> {
);
}
Widget _wrapPopScope() {
return WillPopScope(
onWillPop: () async {
if (_path == null) return true;
if (_path!.canBack) {
_path!.update('..');
setState(() {});
return false;
}
return true;
},
child: _buildBody(),
);
}
Widget _buildBody() {
if (_path == null) {
return const Center(