feat(mobile): Explore favorites, recently added, videos, and motion photos ()

* Added placeholder for search explore

* refactor immich asset grid to use ref and provider

* all videos page

* got favorites, recently added, videos, and motion videos all using the immich grid

* Fixed issue with hero animations

* theming

* localization

* delete empty file

* style text

* Styling icons

* more styling

---------

Co-authored-by: Alex Tran <alex.tran1502@gmail.com>
This commit is contained in:
martyfuhry 2023-03-24 23:44:53 -04:00 committed by GitHub
parent d2600e0ddd
commit 501b96baf7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
23 changed files with 1013 additions and 524 deletions
mobile/lib/routing

View file

@ -131,6 +131,29 @@ class _$AppRouter extends RootStackRouter {
child: const FavoritesPage(),
);
},
AllVideosRoute.name: (routeData) {
return MaterialPageX<dynamic>(
routeData: routeData,
child: const AllVideosPage(),
);
},
AllMotionPhotosRoute.name: (routeData) {
return MaterialPageX<dynamic>(
routeData: routeData,
child: const AllMotionPhotosPage(),
);
},
RecentlyAddedRoute.name: (routeData) {
return CustomPage<dynamic>(
routeData: routeData,
child: const RecentlyAddedPage(),
transitionsBuilder: TransitionsBuilders.noTransition,
durationInMilliseconds: 200,
reverseDurationInMilliseconds: 200,
opaque: true,
barrierDismissible: false,
);
},
AssetSelectionRoute.name: (routeData) {
return CustomPage<AssetSelectionPageResult?>(
routeData: routeData,
@ -375,6 +398,30 @@ class _$AppRouter extends RootStackRouter {
duplicateGuard,
],
),
RouteConfig(
AllVideosRoute.name,
path: '/all-videos-page',
guards: [
authGuard,
duplicateGuard,
],
),
RouteConfig(
AllMotionPhotosRoute.name,
path: '/all-motion-photos-page',
guards: [
authGuard,
duplicateGuard,
],
),
RouteConfig(
RecentlyAddedRoute.name,
path: '/recently-added-page',
guards: [
authGuard,
duplicateGuard,
],
),
RouteConfig(
AssetSelectionRoute.name,
path: '/asset-selection-page',
@ -721,6 +768,42 @@ class FavoritesRoute extends PageRouteInfo<void> {
static const String name = 'FavoritesRoute';
}
/// generated route for
/// [AllVideosPage]
class AllVideosRoute extends PageRouteInfo<void> {
const AllVideosRoute()
: super(
AllVideosRoute.name,
path: '/all-videos-page',
);
static const String name = 'AllVideosRoute';
}
/// generated route for
/// [AllMotionPhotosPage]
class AllMotionPhotosRoute extends PageRouteInfo<void> {
const AllMotionPhotosRoute()
: super(
AllMotionPhotosRoute.name,
path: '/all-motion-photos-page',
);
static const String name = 'AllMotionPhotosRoute';
}
/// generated route for
/// [RecentlyAddedPage]
class RecentlyAddedRoute extends PageRouteInfo<void> {
const RecentlyAddedRoute()
: super(
RecentlyAddedRoute.name,
path: '/recently-added-page',
);
static const String name = 'RecentlyAddedRoute';
}
/// generated route for
/// [AssetSelectionPage]
class AssetSelectionRoute extends PageRouteInfo<void> {