feat: support for switching workspace on mobile (#4990)

* feat: support switching workspaces on mobile

* fix: sync recent section
This commit is contained in:
Lucas.Xu
2024-03-26 10:21:49 +07:00
committed by GitHub
parent b8e3de97a5
commit a1b183f330
12 changed files with 308 additions and 120 deletions

View File

@ -25,6 +25,7 @@ import 'package:appflowy/startup/tasks/app_widget.dart';
import 'package:appflowy/user/application/auth/auth_service.dart';
import 'package:appflowy/user/presentation/presentation.dart';
import 'package:appflowy/workspace/presentation/home/desktop_home_screen.dart';
import 'package:appflowy/workspace/presentation/settings/widgets/feature_flags/mobile_feature_flag_screen.dart';
import 'package:appflowy_backend/protobuf/flowy-database2/protobuf.dart';
import 'package:appflowy_editor/appflowy_editor.dart';
import 'package:flowy_infra/time/duration.dart';
@ -53,6 +54,7 @@ GoRouter generateRouter(Widget child) {
_mobileHomeSettingPageRoute(),
_mobileCloudSettingAppFlowyCloudPageRoute(),
_mobileLaunchSettingsPageRoute(),
_mobileFeatureFlagPageRoute(),
// view page
_mobileEditorScreenRoute(),
@ -219,6 +221,16 @@ GoRoute _mobileLaunchSettingsPageRoute() {
);
}
GoRoute _mobileFeatureFlagPageRoute() {
return GoRoute(
parentNavigatorKey: AppGlobals.rootNavKey,
path: FeatureFlagScreen.routeName,
pageBuilder: (context, state) {
return const MaterialExtendedPage(child: FeatureFlagScreen());
},
);
}
GoRoute _mobileHomeTrashPageRoute() {
return GoRoute(
parentNavigatorKey: AppGlobals.rootNavKey,