mirror of
				https://github.com/immich-app/immich.git
				synced 2025-11-03 19:17:11 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			40 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			Dart
		
	
	
	
	
	
			
		
		
	
	
			40 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			Dart
		
	
	
	
	
	
import 'package:flutter/material.dart';
 | 
						|
import 'package:hooks_riverpod/hooks_riverpod.dart';
 | 
						|
import 'package:immich_mobile/widgets/asset_viewer/description_input.dart';
 | 
						|
import 'package:immich_mobile/widgets/asset_viewer/detail_panel/asset_date_time.dart';
 | 
						|
import 'package:immich_mobile/widgets/asset_viewer/detail_panel/asset_details.dart';
 | 
						|
import 'package:immich_mobile/widgets/asset_viewer/detail_panel/asset_location.dart';
 | 
						|
import 'package:immich_mobile/widgets/asset_viewer/detail_panel/people_info.dart';
 | 
						|
import 'package:immich_mobile/entities/asset.entity.dart';
 | 
						|
 | 
						|
class DetailPanel extends HookConsumerWidget {
 | 
						|
  final Asset asset;
 | 
						|
  final ScrollController? scrollController;
 | 
						|
 | 
						|
  const DetailPanel({super.key, required this.asset, this.scrollController});
 | 
						|
 | 
						|
  @override
 | 
						|
  Widget build(BuildContext context, WidgetRef ref) {
 | 
						|
    return ListView(
 | 
						|
      controller: scrollController,
 | 
						|
      shrinkWrap: true,
 | 
						|
      children: [
 | 
						|
        Padding(
 | 
						|
          padding: const EdgeInsets.symmetric(horizontal: 16.0),
 | 
						|
          child: Column(
 | 
						|
            children: [
 | 
						|
              AssetDateTime(asset: asset),
 | 
						|
              asset.isRemote
 | 
						|
                  ? DescriptionInput(asset: asset)
 | 
						|
                  : const SizedBox.shrink(),
 | 
						|
              PeopleInfo(asset: asset),
 | 
						|
              AssetLocation(asset: asset),
 | 
						|
              AssetDetails(asset: asset),
 | 
						|
            ],
 | 
						|
          ),
 | 
						|
        ),
 | 
						|
      ],
 | 
						|
    );
 | 
						|
  }
 | 
						|
}
 |