Skip to content

Commit

Permalink
🚑️ Fix invalid widgets binding observer caller
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexV525 committed Nov 11, 2021
1 parent 3b38cbe commit 9b6a8fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/widgets/camera_picker.dart
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ class CameraPickerState extends State<CameraPicker>
@override
void initState() {
super.initState();
WidgetsBinding.instance?.removeObserver(this);
WidgetsBinding.instance?.addObserver(this);

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

0 comments on commit 9b6a8fc

Please sign in to comment.