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)), icon: const Icon(Icons.restart_alt_rounded)),
), ),
IconButton( IconButton(
icon: const Icon(Icons.delete_forever_outlined), icon: const Icon(Icons.close),
splashRadius: kDesktopIconButtonSplashRadius, splashRadius: 1,
onPressed: () { onPressed: () {
model.jobTable.removeAt(index); model.jobTable.removeAt(index);
model.cancelJob(item.id); model.cancelJob(item.id);

View File

@ -335,10 +335,12 @@ class _FileManagerPageState extends State<FileManagerPage> {
breadCrumbScrollToEnd() { breadCrumbScrollToEnd() {
Future.delayed(Duration(milliseconds: 200), () { Future.delayed(Duration(milliseconds: 200), () {
if (_breadCrumbScroller.hasClients) {
_breadCrumbScroller.animateTo( _breadCrumbScroller.animateTo(
_breadCrumbScroller.position.maxScrollExtent, _breadCrumbScroller.position.maxScrollExtent,
duration: Duration(milliseconds: 200), duration: Duration(milliseconds: 200),
curve: Curves.fastLinearToSlowEaseIn); curve: Curves.fastLinearToSlowEaseIn);
}
}); });
} }
@ -479,7 +481,7 @@ class _FileManagerPageState extends State<FileManagerPage> {
return BottomSheetBody( return BottomSheetBody(
leading: Icon(Icons.check), leading: Icon(Icons.check),
title: "${translate("Successful")}!", title: "${translate("Successful")}!",
text: "", text: model.jobProgress.display(),
onCanceled: () => model.jobReset(), onCanceled: () => model.jobReset(),
); );
case JobState.error: case JobState.error: