mirror of
				https://github.com/immich-app/immich.git
				synced 2025-10-31 10:37:11 -04:00 
			
		
		
		
	* chore: bump dart sdk to 3.8 * chore: make build * make pigeon * chore: format files --------- Co-authored-by: shenlong-tanwen <139912620+shalong-tanwen@users.noreply.github.com>
		
			
				
	
	
		
			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/extensions/translate_extensions.dart';
 | |
| import 'package:immich_mobile/presentation/widgets/timeline/timeline.widget.dart';
 | |
| import 'package:immich_mobile/providers/infrastructure/timeline.provider.dart';
 | |
| import 'package:immich_mobile/providers/user.provider.dart';
 | |
| import 'package:immich_mobile/widgets/common/mesmerizing_sliver_app_bar.dart';
 | |
| 
 | |
| @RoutePage()
 | |
| class DriftVideoPage extends StatelessWidget {
 | |
|   const DriftVideoPage({super.key});
 | |
| 
 | |
|   @override
 | |
|   Widget build(BuildContext context) {
 | |
|     return ProviderScope(
 | |
|       overrides: [
 | |
|         timelineServiceProvider.overrideWith((ref) {
 | |
|           final user = ref.watch(currentUserProvider);
 | |
|           if (user == null) {
 | |
|             throw Exception('User must be logged in to video');
 | |
|           }
 | |
| 
 | |
|           final timelineService = ref.watch(timelineFactoryProvider).video(user.id);
 | |
|           ref.onDispose(timelineService.dispose);
 | |
|           return timelineService;
 | |
|         }),
 | |
|       ],
 | |
|       child: Timeline(appBar: MesmerizingSliverAppBar(title: 'videos'.t())),
 | |
|     );
 | |
|   }
 | |
| }
 |