File tree Expand file tree Collapse file tree 3 files changed +2
-13
lines changed Expand file tree Collapse file tree 3 files changed +2
-13
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ that can be found in the LICENSE file. -->
14
14
### Improvements
15
15
16
16
- Hide the loading widget in the preview until an actual saving process has been invoked.
17
+ - Remove the implied system UI overlay manipulations.
17
18
18
19
## 3.7.0
19
20
Original file line number Diff line number Diff line change @@ -178,7 +178,7 @@ linter:
178
178
- provide_deprecation_message
179
179
# - public_member_api_docs # enabled on a case-by-case basis; see e.g. packages/analysis_options.yaml
180
180
- recursive_getters
181
- # - require_trailing_commas # blocked on https://github.com/dart-lang/sdk/issues/47441
181
+ - require_trailing_commas
182
182
- secure_pubspec_urls
183
183
- sized_box_for_whitespace
184
184
# - sized_box_shrink_expand # not yet tested
Original file line number Diff line number Diff line change 2
2
// Use of this source code is governed by an Apache license that can be found
3
3
// in the LICENSE file.
4
4
5
- // ignore_for_file: deprecated_member_use
6
5
import 'dart:async' ;
7
6
import 'dart:io' ;
8
7
import 'dart:math' as math;
@@ -187,22 +186,11 @@ class CameraPickerState extends State<CameraPicker>
187
186
ambiguate (WidgetsBinding .instance)? .addObserver (this );
188
187
Constants .textDelegate = widget.pickerConfig.textDelegate ??
189
188
cameraPickerTextDelegateFromLocale (widget.locale);
190
-
191
- // TODO(Alex): Currently hide status bar will cause the viewport shaking on Android.
192
- /// Hide system status bar automatically when the platform is not Android.
193
- /// 在非 Android 设备上自动隐藏状态栏
194
- if (! Platform .isAndroid) {
195
- SystemChrome .setEnabledSystemUIOverlays (< SystemUiOverlay > []);
196
- }
197
-
198
189
initCameras ();
199
190
}
200
191
201
192
@override
202
193
void dispose () {
203
- if (! Platform .isAndroid) {
204
- SystemChrome .setEnabledSystemUIOverlays (SystemUiOverlay .values);
205
- }
206
194
ambiguate (WidgetsBinding .instance)? .removeObserver (this );
207
195
innerController? .dispose ();
208
196
currentExposureOffset.dispose ();
You can’t perform that action at this time.
0 commit comments