mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
chore: refactor show view in timeline button
This refactor includes changes to notify asset viewer about where an asset was shown from.
This commit is contained in:
parent
f2b553182a
commit
268867353b
8 changed files with 77 additions and 22 deletions
|
|
@ -8,6 +8,7 @@ import 'package:hooks_riverpod/hooks_riverpod.dart';
|
|||
import 'package:immich_mobile/constants/enums.dart';
|
||||
import 'package:immich_mobile/domain/models/person.model.dart';
|
||||
import 'package:immich_mobile/domain/models/timeline.model.dart';
|
||||
import 'package:immich_mobile/domain/services/timeline.service.dart';
|
||||
import 'package:immich_mobile/entities/asset.entity.dart';
|
||||
import 'package:immich_mobile/extensions/build_context_extensions.dart';
|
||||
import 'package:immich_mobile/extensions/translate_extensions.dart';
|
||||
|
|
@ -624,7 +625,7 @@ class _SearchResultGrid extends ConsumerWidget {
|
|||
child: ProviderScope(
|
||||
overrides: [
|
||||
timelineServiceProvider.overrideWith((ref) {
|
||||
final timelineService = ref.watch(timelineFactoryProvider).fromAssets(assets);
|
||||
final timelineService = ref.watch(timelineFactoryProvider).fromAssets(assets, TimelineType.search);
|
||||
ref.onDispose(timelineService.dispose);
|
||||
return timelineService;
|
||||
}),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue