mirror of
				https://github.com/immich-app/immich.git
				synced 2025-11-03 19:17:11 -05:00 
			
		
		
		
	* fix: use storageIndicator setting for beta timeline * fix: reactively update the storage indicator icons when setting is changed * Update drift_trash.page.dart * override to bool for storageIndicator
		
			
				
	
	
		
			33 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			Dart
		
	
	
	
	
	
			
		
		
	
	
			33 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			Dart
		
	
	
	
	
	
import 'package:auto_route/auto_route.dart';
 | 
						|
import 'package:flutter/widgets.dart';
 | 
						|
import 'package:hooks_riverpod/hooks_riverpod.dart';
 | 
						|
import 'package:immich_mobile/domain/models/album/local_album.model.dart';
 | 
						|
import 'package:immich_mobile/presentation/widgets/bottom_sheet/local_album_bottom_sheet.widget.dart';
 | 
						|
import 'package:immich_mobile/presentation/widgets/timeline/timeline.widget.dart';
 | 
						|
import 'package:immich_mobile/providers/infrastructure/timeline.provider.dart';
 | 
						|
import 'package:immich_mobile/widgets/common/mesmerizing_sliver_app_bar.dart';
 | 
						|
 | 
						|
@RoutePage()
 | 
						|
class LocalTimelinePage extends StatelessWidget {
 | 
						|
  final LocalAlbum album;
 | 
						|
 | 
						|
  const LocalTimelinePage({super.key, required this.album});
 | 
						|
 | 
						|
  @override
 | 
						|
  Widget build(BuildContext context) {
 | 
						|
    return ProviderScope(
 | 
						|
      overrides: [
 | 
						|
        timelineServiceProvider.overrideWith((ref) {
 | 
						|
          final timelineService = ref.watch(timelineFactoryProvider).localAlbum(albumId: album.id);
 | 
						|
          ref.onDispose(timelineService.dispose);
 | 
						|
          return timelineService;
 | 
						|
        }),
 | 
						|
      ],
 | 
						|
      child: Timeline(
 | 
						|
        appBar: MesmerizingSliverAppBar(title: album.name),
 | 
						|
        bottomSheet: const LocalAlbumBottomSheet(),
 | 
						|
      ),
 | 
						|
    );
 | 
						|
  }
 | 
						|
}
 |