mirror of
				https://github.com/immich-app/immich.git
				synced 2025-11-04 03:27:09 -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;
 | 
					    late Offset localPosition;
 | 
				
			||||||
    final authToken = 'Bearer ${box.get(accessTokenKey)}';
 | 
					    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(
 | 
					    useEffect(
 | 
				
			||||||
      () {
 | 
					      () {
 | 
				
			||||||
        isLoadPreview.value =
 | 
					        isLoadPreview.value =
 | 
				
			||||||
@ -247,13 +256,6 @@ class GalleryViewerPage extends HookConsumerWidget {
 | 
				
			|||||||
              (showAppBar.value && !isZoomed.value)) &&
 | 
					              (showAppBar.value && !isZoomed.value)) &&
 | 
				
			||||||
          !isPlayingVideo.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(
 | 
					      return AnimatedOpacity(
 | 
				
			||||||
        duration: const Duration(milliseconds: 100),
 | 
					        duration: const Duration(milliseconds: 100),
 | 
				
			||||||
        opacity: show ? 1.0 : 0.0,
 | 
					        opacity: show ? 1.0 : 0.0,
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user