mirror of
				https://github.com/immich-app/immich.git
				synced 2025-11-04 03:27:09 -05:00 
			
		
		
		
	* feat(mobile): add album asset sync * add SyncAlbumToAssetDeleteV1 to openapi-spec * update delete queries to use where in statements * clear remote album when clear remote data * fix: bad merge * fix: bad merge * fix: _SyncAckV1 return type --------- Co-authored-by: shenlong-tanwen <139912620+shalong-tanwen@users.noreply.github.com> Co-authored-by: wuzihao051119 <wuzihao051119@outlook.com> Co-authored-by: Alex Tran <alex.tran1502@gmail.com>
		
			
				
	
	
		
			33 lines
		
	
	
		
			957 B
		
	
	
	
		
			Dart
		
	
	
	
	
	
			
		
		
	
	
			33 lines
		
	
	
		
			957 B
		
	
	
	
		
			Dart
		
	
	
	
	
	
import 'dart:async';
 | 
						|
 | 
						|
import 'package:auto_route/auto_route.dart';
 | 
						|
import 'package:flutter/widgets.dart';
 | 
						|
import 'package:hooks_riverpod/hooks_riverpod.dart';
 | 
						|
import 'package:immich_mobile/presentation/widgets/timeline/timeline.widget.dart';
 | 
						|
import 'package:immich_mobile/providers/infrastructure/timeline.provider.dart';
 | 
						|
 | 
						|
@RoutePage()
 | 
						|
class RemoteTimelinePage extends StatelessWidget {
 | 
						|
  final String albumId;
 | 
						|
 | 
						|
  const RemoteTimelinePage({super.key, required this.albumId});
 | 
						|
 | 
						|
  @override
 | 
						|
  Widget build(BuildContext context) {
 | 
						|
    return ProviderScope(
 | 
						|
      overrides: [
 | 
						|
        timelineServiceProvider.overrideWith(
 | 
						|
          (ref) {
 | 
						|
            final timelineService = ref
 | 
						|
                .watch(timelineFactoryProvider)
 | 
						|
                .remoteAlbum(albumId: albumId);
 | 
						|
            ref.onDispose(() => unawaited(timelineService.dispose()));
 | 
						|
            return timelineService;
 | 
						|
          },
 | 
						|
        ),
 | 
						|
      ],
 | 
						|
      child: const Timeline(),
 | 
						|
    );
 | 
						|
  }
 | 
						|
}
 |