mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-17 15:24:35 +01:00
opt.: more params of editor page
This commit is contained in:
@@ -156,8 +156,22 @@ class AppRoute {
|
||||
return AppRoute(DockerManagePage(key: key, spi: spi), 'docker');
|
||||
}
|
||||
|
||||
static AppRoute editor({Key? key, required String path}) {
|
||||
return AppRoute(EditorPage(key: key, path: path), 'editor');
|
||||
/// - Pop true if the text is changed & [path] is not null
|
||||
/// - Pop text if [path] is null
|
||||
static AppRoute editor({
|
||||
Key? key,
|
||||
String? path,
|
||||
String? text,
|
||||
String? langCode,
|
||||
}) {
|
||||
return AppRoute(
|
||||
EditorPage(
|
||||
key: key,
|
||||
path: path,
|
||||
text: text,
|
||||
langCode: langCode,
|
||||
),
|
||||
'editor');
|
||||
}
|
||||
|
||||
static AppRoute fullscreen({Key? key}) {
|
||||
|
||||
Reference in New Issue
Block a user