mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-17 07:14:28 +01:00
new: disk view option & chore: flutter 3.16
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user