mirror of
				https://github.com/KevinMidboe/immich.git
				synced 2025-10-29 17:40:28 +00:00 
			
		
		
		
	Add settings screen on mobile (#463)
* Refactor profile drawer to sub component * Added setting page, routing with some options * Added setting service * Implement three stage settings * get app setting for three stage loading
This commit is contained in:
		| @@ -137,6 +137,10 @@ class _$AppRouter extends RootStackRouter { | ||||
|           opaque: true, | ||||
|           barrierDismissible: false); | ||||
|     }, | ||||
|     SettingsRoute.name: (routeData) { | ||||
|       return MaterialPageX<dynamic>( | ||||
|           routeData: routeData, child: const SettingsPage()); | ||||
|     }, | ||||
|     HomeRoute.name: (routeData) { | ||||
|       return MaterialPageX<dynamic>( | ||||
|           routeData: routeData, child: const HomePage()); | ||||
| @@ -211,7 +215,9 @@ class _$AppRouter extends RootStackRouter { | ||||
|         RouteConfig(AlbumPreviewRoute.name, | ||||
|             path: '/album-preview-page', guards: [authGuard]), | ||||
|         RouteConfig(FailedBackupStatusRoute.name, | ||||
|             path: '/failed-backup-status-page', guards: [authGuard]) | ||||
|             path: '/failed-backup-status-page', guards: [authGuard]), | ||||
|         RouteConfig(SettingsRoute.name, | ||||
|             path: '/settings-page', guards: [authGuard]) | ||||
|       ]; | ||||
| } | ||||
|  | ||||
| @@ -546,6 +552,14 @@ class FailedBackupStatusRoute extends PageRouteInfo<void> { | ||||
|   static const String name = 'FailedBackupStatusRoute'; | ||||
| } | ||||
|  | ||||
| /// generated route for | ||||
| /// [SettingsPage] | ||||
| class SettingsRoute extends PageRouteInfo<void> { | ||||
|   const SettingsRoute() : super(SettingsRoute.name, path: '/settings-page'); | ||||
|  | ||||
|   static const String name = 'SettingsRoute'; | ||||
| } | ||||
|  | ||||
| /// generated route for | ||||
| /// [HomePage] | ||||
| class HomeRoute extends PageRouteInfo<void> { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user