new: disk view option & chore: flutter 3.16
This commit is contained in:
@@ -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
|
||||
? [
|
||||
|
||||
Reference in New Issue
Block a user