mirror of
https://github.com/KevinMidboe/immich.git
synced 2025-10-29 17:40:28 +00:00
refactor(mobile): app bar (#4687)
* refactor(mobile): add app bar to library and sharing * mobile: add app bar dialog * fix(mobile): refetch profile image only when path is changed * mobile: add server url to dialog * mobile: move trash to library app bar * replace discord link with github * user confirmation before sign out * edit some styles --------- Co-authored-by: shalong-tanwen <139912620+shalong-tanwen@users.noreply.github.com> Co-authored-by: Alex Tran <alex.tran1502@gmail.com>
This commit is contained in:
@@ -133,10 +133,7 @@ part 'router.gr.dart';
|
||||
DuplicateGuard,
|
||||
],
|
||||
),
|
||||
CustomRoute(
|
||||
page: AppLogPage,
|
||||
transitionsBuilder: TransitionsBuilders.slideBottom,
|
||||
),
|
||||
AutoRoute(page: AppLogPage, guards: [DuplicateGuard]),
|
||||
AutoRoute(
|
||||
page: AppLogDetailPage,
|
||||
),
|
||||
|
||||
@@ -231,12 +231,9 @@ class _$AppRouter extends RootStackRouter {
|
||||
);
|
||||
},
|
||||
AppLogRoute.name: (routeData) {
|
||||
return CustomPage<dynamic>(
|
||||
return MaterialPageX<dynamic>(
|
||||
routeData: routeData,
|
||||
child: const AppLogPage(),
|
||||
transitionsBuilder: TransitionsBuilders.slideBottom,
|
||||
opaque: true,
|
||||
barrierDismissible: false,
|
||||
);
|
||||
},
|
||||
AppLogDetailRoute.name: (routeData) {
|
||||
@@ -583,6 +580,7 @@ class _$AppRouter extends RootStackRouter {
|
||||
RouteConfig(
|
||||
AppLogRoute.name,
|
||||
path: '/app-log-page',
|
||||
guards: [duplicateGuard],
|
||||
),
|
||||
RouteConfig(
|
||||
AppLogDetailRoute.name,
|
||||
|
||||
Reference in New Issue
Block a user