mirror of
				https://github.com/immich-app/immich.git
				synced 2025-11-03 19:17:11 -05:00 
			
		
		
		
	fix(mobile): use safe area for gallery_viewer bottom sheet (#5831)
Co-authored-by: shenlong-tanwen <139912620+shalong-tanwen@users.noreply.github.com>
This commit is contained in:
		
							parent
							
								
									de1514a441
								
							
						
					
					
						commit
						085dc6cd93
					
				@ -179,18 +179,18 @@ class GalleryViewerPage extends HookConsumerWidget {
 | 
			
		||||
        barrierColor: Colors.transparent,
 | 
			
		||||
        backgroundColor: Colors.transparent,
 | 
			
		||||
        isScrollControlled: true,
 | 
			
		||||
        useSafeArea: true,
 | 
			
		||||
        context: context,
 | 
			
		||||
        builder: (context) {
 | 
			
		||||
          if (ref
 | 
			
		||||
              .watch(appSettingsServiceProvider)
 | 
			
		||||
              .getSetting<bool>(AppSettingsEnum.advancedTroubleshooting)) {
 | 
			
		||||
            return AdvancedBottomSheet(assetDetail: asset());
 | 
			
		||||
          }
 | 
			
		||||
          return Padding(
 | 
			
		||||
            padding: EdgeInsets.only(
 | 
			
		||||
              bottom: MediaQuery.of(context).viewInsets.bottom,
 | 
			
		||||
              bottom: MediaQuery.viewInsetsOf(context).bottom,
 | 
			
		||||
            ),
 | 
			
		||||
            child: ExifBottomSheet(asset: asset()),
 | 
			
		||||
            child: ref
 | 
			
		||||
                    .watch(appSettingsServiceProvider)
 | 
			
		||||
                    .getSetting<bool>(AppSettingsEnum.advancedTroubleshooting)
 | 
			
		||||
                ? AdvancedBottomSheet(assetDetail: asset())
 | 
			
		||||
                : ExifBottomSheet(asset: asset()),
 | 
			
		||||
          );
 | 
			
		||||
        },
 | 
			
		||||
      );
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user