From bbddbde6a03818a6d6c78057768fbc8f84eb30bb Mon Sep 17 00:00:00 2001 From: csf Date: Mon, 5 Dec 2022 21:57:08 +0900 Subject: [PATCH] mobile skipping info & fix mobile breadCrumbScroller has no client error --- flutter/lib/desktop/pages/file_manager_page.dart | 4 ++-- flutter/lib/mobile/pages/file_manager_page.dart | 12 +++++++----- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/flutter/lib/desktop/pages/file_manager_page.dart b/flutter/lib/desktop/pages/file_manager_page.dart index b2e5232ab..9d8ef6f7a 100644 --- a/flutter/lib/desktop/pages/file_manager_page.dart +++ b/flutter/lib/desktop/pages/file_manager_page.dart @@ -489,8 +489,8 @@ class _FileManagerPageState extends State icon: const Icon(Icons.restart_alt_rounded)), ), IconButton( - icon: const Icon(Icons.delete_forever_outlined), - splashRadius: kDesktopIconButtonSplashRadius, + icon: const Icon(Icons.close), + splashRadius: 1, onPressed: () { model.jobTable.removeAt(index); model.cancelJob(item.id); diff --git a/flutter/lib/mobile/pages/file_manager_page.dart b/flutter/lib/mobile/pages/file_manager_page.dart index 73df2cb01..549a44b78 100644 --- a/flutter/lib/mobile/pages/file_manager_page.dart +++ b/flutter/lib/mobile/pages/file_manager_page.dart @@ -335,10 +335,12 @@ class _FileManagerPageState extends State { breadCrumbScrollToEnd() { Future.delayed(Duration(milliseconds: 200), () { - _breadCrumbScroller.animateTo( - _breadCrumbScroller.position.maxScrollExtent, - duration: Duration(milliseconds: 200), - curve: Curves.fastLinearToSlowEaseIn); + if (_breadCrumbScroller.hasClients) { + _breadCrumbScroller.animateTo( + _breadCrumbScroller.position.maxScrollExtent, + duration: Duration(milliseconds: 200), + curve: Curves.fastLinearToSlowEaseIn); + } }); } @@ -479,7 +481,7 @@ class _FileManagerPageState extends State { return BottomSheetBody( leading: Icon(Icons.check), title: "${translate("Successful")}!", - text: "", + text: model.jobProgress.display(), onCanceled: () => model.jobReset(), ); case JobState.error: