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

@@ -69,24 +69,11 @@ class _SftpPageState extends State<SftpPage> with AfterLayoutMixin {
),
],
),
body: _buildBody(),
body: _buildFileView(),
bottomNavigationBar: _buildBottom(),
);
}
Widget _buildBody() {
return WillPopScope(
onWillPop: () async {
if (_status.path == null || _status.path?.path == '/') {
return true;
}
await _backward();
return false;
},
child: _buildFileView(),
);
}
Widget _buildBottom() {
final children = widget.isSelect
? [