mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-17 23:34:24 +01:00
opt.: use new routes
This commit is contained in:
@@ -110,8 +110,15 @@ class AppRoute {
|
||||
return AppRoute(SSHVirtKeySettingPage(key: key), 'ssh_virt_key_setting');
|
||||
}
|
||||
|
||||
static AppRoute localStorage({Key? key}) {
|
||||
return AppRoute(LocalStoragePage(key: key), 'local_storage');
|
||||
static AppRoute localStorage(
|
||||
{Key? key, bool isPickFile = false, String? initDir}) {
|
||||
return AppRoute(
|
||||
LocalStoragePage(
|
||||
key: key,
|
||||
isPickFile: isPickFile,
|
||||
initDir: initDir,
|
||||
),
|
||||
'local_storage');
|
||||
}
|
||||
|
||||
static AppRoute sftpMission({Key? key}) {
|
||||
|
||||
@@ -11,7 +11,6 @@ import '../../data/model/server/snippet.dart';
|
||||
import '../../data/provider/snippet.dart';
|
||||
import '../../data/res/ui.dart';
|
||||
import '../../locator.dart';
|
||||
import '../../view/page/snippet/edit.dart';
|
||||
import '../../view/widget/picker.dart';
|
||||
import '../persistant_store.dart';
|
||||
import '../route.dart';
|
||||
@@ -146,7 +145,7 @@ void showSnippetDialog(
|
||||
TextButton(
|
||||
onPressed: () {
|
||||
context.pop();
|
||||
AppRoute(const SnippetEditPage(), 'edit snippet').go(context);
|
||||
AppRoute.snippetEdit().go(context);
|
||||
},
|
||||
child: Text(s.add),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user