Skip to content

Commit 9b6a8fc

Browse files
committed
🚑️ Fix invalid widgets binding observer caller
1 parent 3b38cbe commit 9b6a8fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/src/widgets/camera_picker.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ class CameraPickerState extends State<CameraPicker>
378378
@override
379379
void initState() {
380380
super.initState();
381-
WidgetsBinding.instance?.removeObserver(this);
381+
WidgetsBinding.instance?.addObserver(this);
382382

383383
// TODO(Alex): Currently hide status bar will cause the viewport shaking on Android.
384384
/// Hide system status bar automatically when the platform is not Android.

0 commit comments

Comments
 (0)