mirror of
				https://github.com/immich-app/immich.git
				synced 2025-11-03 19:17:11 -05:00 
			
		
		
		
	fixes gallery viewer fullscreen edge case (#1959)
This commit is contained in:
		
							parent
							
								
									3cce43309c
								
							
						
					
					
						commit
						8adca31c24
					
				@ -59,6 +59,15 @@ class GalleryViewerPage extends HookConsumerWidget {
 | 
			
		||||
    late Offset localPosition;
 | 
			
		||||
    final authToken = 'Bearer ${box.get(accessTokenKey)}';
 | 
			
		||||
 | 
			
		||||
    showAppBar.addListener(() {
 | 
			
		||||
      // Change to and from immersive mode, hiding navigation and app bar
 | 
			
		||||
      if (showAppBar.value) {
 | 
			
		||||
        SystemChrome.setEnabledSystemUIMode(SystemUiMode.edgeToEdge);
 | 
			
		||||
      } else {
 | 
			
		||||
        SystemChrome.setEnabledSystemUIMode(SystemUiMode.immersive);
 | 
			
		||||
      }
 | 
			
		||||
    });
 | 
			
		||||
 | 
			
		||||
    useEffect(
 | 
			
		||||
      () {
 | 
			
		||||
        isLoadPreview.value =
 | 
			
		||||
@ -247,13 +256,6 @@ class GalleryViewerPage extends HookConsumerWidget {
 | 
			
		||||
              (showAppBar.value && !isZoomed.value)) &&
 | 
			
		||||
          !isPlayingVideo.value;
 | 
			
		||||
 | 
			
		||||
      // Change to and from immersive mode, hiding navigation and app bar
 | 
			
		||||
      if (show) {
 | 
			
		||||
        SystemChrome.setEnabledSystemUIMode(SystemUiMode.edgeToEdge);
 | 
			
		||||
      } else {
 | 
			
		||||
        SystemChrome.setEnabledSystemUIMode(SystemUiMode.immersive);
 | 
			
		||||
      }
 | 
			
		||||
 | 
			
		||||
      return AnimatedOpacity(
 | 
			
		||||
        duration: const Duration(milliseconds: 100),
 | 
			
		||||
        opacity: show ? 1.0 : 0.0,
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user