Skip to content

Commit de829b8

Browse files
committed
🔥 Remove system ui overlays update.
1 parent 80f15a1 commit de829b8

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

lib/src/widget/asset_picker_viewer.dart

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -171,12 +171,6 @@ class AssetPickerViewerState extends State<AssetPickerViewer>
171171
void initState() {
172172
super.initState();
173173

174-
// TODO(Alex): Currently hide status bar will cause the viewport shaking on Android.
175-
/// Hide system status bar automatically on iOS.
176-
/// 在iOS设备上自动隐藏状态栏
177-
if (Platform.isIOS) {
178-
SystemChrome.setEnabledSystemUIOverlays(<SystemUiOverlay>[]);
179-
}
180174
_doubleTapAnimationController = AnimationController(
181175
duration: const Duration(milliseconds: 200),
182176
vsync: this,
@@ -194,7 +188,6 @@ class AssetPickerViewerState extends State<AssetPickerViewer>
194188

195189
@override
196190
void dispose() {
197-
SystemChrome.setEnabledSystemUIOverlays(SystemUiOverlay.values);
198191
_doubleTapAnimationController?.dispose();
199192
pageStreamController?.close();
200193
super.dispose();
@@ -230,11 +223,6 @@ class AssetPickerViewerState extends State<AssetPickerViewer>
230223
/// 切换显示详情状态的方法
231224
void switchDisplayingDetail({bool value}) {
232225
isDisplayingDetail = value ?? !isDisplayingDetail;
233-
// if (!Platform.isIOS) {
234-
// SystemChrome.setEnabledSystemUIOverlays(
235-
// isDisplayingDetail ? SystemUiOverlay.values : <SystemUiOverlay>[],
236-
// );
237-
// }
238226
if (mounted) {
239227
setState(() {});
240228
}

0 commit comments

Comments
 (0)