feat: customize self host url on launch page (#4465)

This commit is contained in:
Lucas.Xu
2024-01-23 16:38:15 +08:00
committed by GitHub
parent 2554ba81b5
commit e239ba46aa
11 changed files with 293 additions and 93 deletions

View File

@ -82,7 +82,6 @@ class InitAppWidgetTask extends LaunchTask {
path: 'assets/translations',
fallbackLocale: const Locale('en'),
useFallbackTranslations: true,
saveLocale: false,
child: app,
),
);

View File

@ -12,6 +12,7 @@ import 'package:appflowy/mobile/presentation/presentation.dart';
import 'package:appflowy/mobile/presentation/setting/cloud/appflowy_cloud_page.dart';
import 'package:appflowy/mobile/presentation/setting/font/font_picker_screen.dart';
import 'package:appflowy/mobile/presentation/setting/language/language_picker_screen.dart';
import 'package:appflowy/mobile/presentation/setting/launch_settings_page.dart';
import 'package:appflowy/plugins/base/color/color_picker_screen.dart';
import 'package:appflowy/plugins/base/emoji/emoji_picker_screen.dart';
import 'package:appflowy/plugins/document/presentation/editor_plugins/code_block/code_language_screen.dart';
@ -49,6 +50,7 @@ GoRouter generateRouter(Widget child) {
_mobileHomeSettingPageRoute(),
_mobileSettingUserAgreementPageRoute(),
_mobileCloudSettingAppFlowyCloudPageRoute(),
_mobileLaunchSettingsPageRoute(),
// view page
_mobileEditorScreenRoute(),
@ -215,6 +217,16 @@ GoRoute _mobileSettingUserAgreementPageRoute() {
);
}
GoRoute _mobileLaunchSettingsPageRoute() {
return GoRoute(
parentNavigatorKey: AppGlobals.rootNavKey,
path: MobileLaunchSettingsPage.routeName,
pageBuilder: (context, state) {
return const MaterialPage(child: MobileLaunchSettingsPage());
},
);
}
GoRoute _mobileHomeTrashPageRoute() {
return GoRoute(
parentNavigatorKey: AppGlobals.rootNavKey,