fix & optimize

- fix downloading page unbond size
- auto dispose isolate
This commit is contained in:
Junyuan Feng
2022-05-07 23:05:31 +08:00
parent d224ad8cf8
commit b0c3cd3834
7 changed files with 27 additions and 14 deletions

View File

@@ -211,13 +211,17 @@ class _SFTPPageState extends State<SFTPPage> {
key: pubKeyId == null
? null
: locator<PrivateKeyStore>().get(pubKeyId).privateKey);
Navigator.of(context).pop();
showRoundDialog(context, s.goSftpDlPage, const SizedBox(), [
TextButton(
onPressed: () => Navigator.of(context).pop(),
child: Text(s.cancel)),
TextButton(
onPressed: () =>
AppRoute(const SFTPDownloadingPage(), 'sftp downloading'),
onPressed: () {
Navigator.of(context).pop();
AppRoute(const SFTPDownloadingPage(), 'sftp downloading')
.go(context);
},
child: Text(s.ok))
]);
},