mirror of
				https://github.com/immich-app/immich.git
				synced 2025-11-03 19:29:32 -05:00 
			
		
		
		
	* dep(mobile): update flutter and deps * chore: dart analyzer * chore: update flutter workflow version * chore: dart format * fix: gallery_viewer PopScope --------- Co-authored-by: shenlong-tanwen <139912620+shalong-tanwen@users.noreply.github.com>
		
			
				
	
	
		
			25 lines
		
	
	
		
			656 B
		
	
	
	
		
			Dart
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			656 B
		
	
	
	
		
			Dart
		
	
	
	
	
	
import 'package:flutter/material.dart';
 | 
						|
import 'package:hooks_riverpod/hooks_riverpod.dart';
 | 
						|
import 'package:immich_mobile/shared/models/asset.dart';
 | 
						|
import 'package:immich_mobile/shared/ui/immich_image.dart';
 | 
						|
 | 
						|
class SharedAlbumThumbnailImage extends HookConsumerWidget {
 | 
						|
  final Asset asset;
 | 
						|
 | 
						|
  const SharedAlbumThumbnailImage({super.key, required this.asset});
 | 
						|
 | 
						|
  @override
 | 
						|
  Widget build(BuildContext context, WidgetRef ref) {
 | 
						|
    return GestureDetector(
 | 
						|
      onTap: () {
 | 
						|
        // debugPrint("View ${asset.id}");
 | 
						|
      },
 | 
						|
      child: Stack(
 | 
						|
        children: [
 | 
						|
          ImmichImage(asset, width: 500, height: 500),
 | 
						|
        ],
 | 
						|
      ),
 | 
						|
    );
 | 
						|
  }
 | 
						|
}
 |