mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
feat: support for switching workspace on mobile (#4990)
* feat: support switching workspaces on mobile * fix: sync recent section
This commit is contained in:
@ -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,
|
||||
|
Reference in New Issue
Block a user