File tree Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Original file line number Diff line number Diff line change @@ -171,12 +171,6 @@ class AssetPickerViewerState extends State<AssetPickerViewer>
171
171
void initState () {
172
172
super .initState ();
173
173
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
- }
180
174
_doubleTapAnimationController = AnimationController (
181
175
duration: const Duration (milliseconds: 200 ),
182
176
vsync: this ,
@@ -194,7 +188,6 @@ class AssetPickerViewerState extends State<AssetPickerViewer>
194
188
195
189
@override
196
190
void dispose () {
197
- SystemChrome .setEnabledSystemUIOverlays (SystemUiOverlay .values);
198
191
_doubleTapAnimationController? .dispose ();
199
192
pageStreamController? .close ();
200
193
super .dispose ();
@@ -230,11 +223,6 @@ class AssetPickerViewerState extends State<AssetPickerViewer>
230
223
/// 切换显示详情状态的方法
231
224
void switchDisplayingDetail ({bool value}) {
232
225
isDisplayingDetail = value ?? ! isDisplayingDetail;
233
- // if (!Platform.isIOS) {
234
- // SystemChrome.setEnabledSystemUIOverlays(
235
- // isDisplayingDetail ? SystemUiOverlay.values : <SystemUiOverlay>[],
236
- // );
237
- // }
238
226
if (mounted) {
239
227
setState (() {});
240
228
}
You can’t perform that action at this time.
0 commit comments