Merge pull request #2458 from Heap-Hop/master

Add mobile skipping info & fix mobile breadCrumbScroller has no client error
This commit is contained in:
RustDesk 2022-12-05 21:00:23 +08:00 committed by GitHub
commit 12f8d31fbb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 7 deletions

View File

@ -489,8 +489,8 @@ class _FileManagerPageState extends State<FileManagerPage>
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);

View File

@ -335,10 +335,12 @@ class _FileManagerPageState extends State<FileManagerPage> {
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<FileManagerPage> {
return BottomSheetBody(
leading: Icon(Icons.check),
title: "${translate("Successful")}!",
text: "",
text: model.jobProgress.display(),
onCanceled: () => model.jobReset(),
);
case JobState.error: