소스 검색

Apply lint suggestion for deprecated method

Signed-off-by: Neeraj Gupta <254676+ua741@users.noreply.github.com>
Neeraj Gupta 3 년 전
부모
커밋
391747337a
1개의 변경된 파일7개의 추가작업 그리고 3개의 파일을 삭제
  1. 7 3
      lib/ui/viewer/file/detail_page.dart

+ 7 - 3
lib/ui/viewer/file/detail_page.dart

@@ -85,7 +85,10 @@ class _DetailPageState extends State<DetailPage> {
 
 
   @override
   @override
   void dispose() {
   void dispose() {
-    SystemChrome.setEnabledSystemUIOverlays(SystemUiOverlay.values);
+    SystemChrome.setEnabledSystemUIMode(
+      SystemUiMode.manual,
+      overlays: SystemUiOverlay.values,
+    );
     super.dispose();
     super.dispose();
   }
   }
 
 
@@ -189,9 +192,10 @@ class _DetailPageState extends State<DetailPage> {
       _bottomBarKey.currentState.show();
       _bottomBarKey.currentState.show();
     }
     }
     Future.delayed(Duration.zero, () {
     Future.delayed(Duration.zero, () {
-      SystemChrome.setEnabledSystemUIOverlays(
+      SystemChrome.setEnabledSystemUIMode(
         //to hide status bar?
         //to hide status bar?
-        _shouldHideAppBar ? [] : SystemUiOverlay.values,
+        SystemUiMode.manual,
+        overlays: _shouldHideAppBar ? [] : SystemUiOverlay.values,
       );
       );
     });
     });
   }
   }