File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -439,11 +439,18 @@ class CameraPickerState extends State<CameraPicker>
439
439
final CameraController _c = controller;
440
440
// Then unbind the controller from widgets, which requires a build frame.
441
441
setState (() {
442
+ _currentZoom = 1.0 ;
443
+ _baseZoom = 1.0 ;
444
+ _maxAvailableZoom = null ;
445
+ _minAvailableZoom = null ;
442
446
_controllerNotifier.value = null ;
443
447
// Meanwhile, cancel the existed exposure point and mode display.
444
448
_exposureModeDisplayTimer? .cancel ();
445
449
_exposurePointDisplayTimer? .cancel ();
446
450
_lastExposurePoint.value = null ;
451
+ if (_currentExposureOffset.value != 0.0 ) {
452
+ _currentExposureOffset.value = 0.0 ;
453
+ }
447
454
});
448
455
// **IMPORTANT**: Push methods into a post frame callback, which ensures the
449
456
// controller has already unbind from widgets.
You can’t perform that action at this time.
0 commit comments