mobile file transfer update goBack goToParentDirectory
This commit is contained in:
parent
519b5fb555
commit
17b34dad69
@ -53,7 +53,7 @@ class _FileManagerPageState extends State<FileManagerPage> {
|
|||||||
if (model.selectMode) {
|
if (model.selectMode) {
|
||||||
model.toggleSelectMode();
|
model.toggleSelectMode();
|
||||||
} else {
|
} else {
|
||||||
goBack();
|
model.goBack();
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
},
|
},
|
||||||
@ -330,10 +330,6 @@ class _FileManagerPageState extends State<FileManagerPage> {
|
|||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
goBack() {
|
|
||||||
model.goToParentDirectory();
|
|
||||||
}
|
|
||||||
|
|
||||||
breadCrumbScrollToEnd() {
|
breadCrumbScrollToEnd() {
|
||||||
Future.delayed(Duration(milliseconds: 200), () {
|
Future.delayed(Duration(milliseconds: 200), () {
|
||||||
_breadCrumbScroller.animateTo(
|
_breadCrumbScroller.animateTo(
|
||||||
@ -368,9 +364,13 @@ class _FileManagerPageState extends State<FileManagerPage> {
|
|||||||
)),
|
)),
|
||||||
Row(
|
Row(
|
||||||
children: [
|
children: [
|
||||||
|
IconButton(
|
||||||
|
icon: Icon(Icons.arrow_back),
|
||||||
|
onPressed: model.goBack,
|
||||||
|
),
|
||||||
IconButton(
|
IconButton(
|
||||||
icon: Icon(Icons.arrow_upward),
|
icon: Icon(Icons.arrow_upward),
|
||||||
onPressed: goBack,
|
onPressed: model.goToParentDirectory,
|
||||||
),
|
),
|
||||||
PopupMenuButton<SortBy>(
|
PopupMenuButton<SortBy>(
|
||||||
icon: Icon(Icons.sort),
|
icon: Icon(Icons.sort),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user