File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -175,12 +175,12 @@ class AssetPickerViewerState extends State<AssetPickerViewer>
175
175
void initState () {
176
176
super .initState ();
177
177
178
- // TODO(Alex): Currently hide status bar will cause the viewport shaking. So commented out .
178
+ // TODO(Alex): Currently hide status bar will cause the viewport shaking on Android .
179
179
/// Hide system status bar automatically on iOS.
180
180
/// 在iOS设备上自动隐藏状态栏
181
- // if (Platform.isIOS) {
182
- // SystemChrome.setEnabledSystemUIOverlays(<SystemUiOverlay>[]);
183
- // }
181
+ if (Platform .isIOS) {
182
+ SystemChrome .setEnabledSystemUIOverlays (< SystemUiOverlay > []);
183
+ }
184
184
_doubleTapAnimationController = AnimationController (
185
185
duration: const Duration (milliseconds: 200 ),
186
186
vsync: this ,
@@ -198,7 +198,7 @@ class AssetPickerViewerState extends State<AssetPickerViewer>
198
198
199
199
@override
200
200
void dispose () {
201
- // SystemChrome.restoreSystemUIOverlays( );
201
+ SystemChrome .setEnabledSystemUIOverlays ( SystemUiOverlay .values );
202
202
_doubleTapAnimationController? .dispose ();
203
203
pageStreamController? .close ();
204
204
super .dispose ();
You can’t perform that action at this time.
0 commit comments