mirror of
https://github.com/immich-app/immich.git
synced 2025-07-08 18:54:18 -04:00
* reduce timeline rebuilds * feat: adds bottom sheet map and actions (#19692) * adds bottom sheet map and actions * PR feedbacks * only reload the asset viewer if asset is changed * styling tweak --------- Co-authored-by: shenlong-tanwen <139912620+shalong-tanwen@users.noreply.github.com> Co-authored-by: Alex <alex.tran1502@gmail.com> * rename singleton and remove event prefix * adds bottom sheet map and actions * PR feedbacks * refactor: use provider for viewer state * feat: adds top and bottom app bar * add safe area to bottom app bar * change app and bottom bar color * viewer - always have black background * use the full width for the bottom sheet on landscape as well * constraint the bottom sheet to not expand all the way * add padding for location details in landscape --------- Co-authored-by: shenlong-tanwen <139912620+shalong-tanwen@users.noreply.github.com> Co-authored-by: Alex <alex.tran1502@gmail.com>
21 lines
841 B
Dart
21 lines
841 B
Dart
import 'package:hooks_riverpod/hooks_riverpod.dart';
|
|
import 'package:immich_mobile/domain/services/asset.service.dart';
|
|
import 'package:immich_mobile/infrastructure/repositories/local_asset.repository.dart';
|
|
import 'package:immich_mobile/infrastructure/repositories/remote_asset.repository.dart';
|
|
import 'package:immich_mobile/providers/infrastructure/db.provider.dart';
|
|
|
|
final localAssetRepository = Provider<DriftLocalAssetRepository>(
|
|
(ref) => DriftLocalAssetRepository(ref.watch(driftProvider)),
|
|
);
|
|
|
|
final remoteAssetRepositoryProvider = Provider<RemoteAssetRepository>(
|
|
(ref) => RemoteAssetRepository(ref.watch(driftProvider)),
|
|
);
|
|
|
|
final assetServiceProvider = Provider(
|
|
(ref) => AssetService(
|
|
remoteAssetRepository: ref.watch(remoteAssetRepositoryProvider),
|
|
localAssetRepository: ref.watch(localAssetRepository),
|
|
),
|
|
);
|