mobile file transfer update goBack goToParentDirectory

This commit is contained in:
csf 2022-11-03 00:01:59 +09:00
parent 519b5fb555
commit 17b34dad69

View File

@ -53,7 +53,7 @@ class _FileManagerPageState extends State<FileManagerPage> {
if (model.selectMode) {
model.toggleSelectMode();
} else {
goBack();
model.goBack();
}
return false;
},
@ -330,10 +330,6 @@ class _FileManagerPageState extends State<FileManagerPage> {
]);
}
goBack() {
model.goToParentDirectory();
}
breadCrumbScrollToEnd() {
Future.delayed(Duration(milliseconds: 200), () {
_breadCrumbScroller.animateTo(
@ -368,9 +364,13 @@ class _FileManagerPageState extends State<FileManagerPage> {
)),
Row(
children: [
IconButton(
icon: Icon(Icons.arrow_back),
onPressed: model.goBack,
),
IconButton(
icon: Icon(Icons.arrow_upward),
onPressed: goBack,
onPressed: model.goToParentDirectory,
),
PopupMenuButton<SortBy>(
icon: Icon(Icons.sort),