From 9b6a8fc5072ae643e5253beb82a8f8300ab2f076 Mon Sep 17 00:00:00 2001 From: Alex Li Date: Thu, 11 Nov 2021 20:35:45 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=91=EF=B8=8F=20Fix=20invalid=20widgets?= =?UTF-8?q?=20binding=20observer=20caller?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/src/widgets/camera_picker.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/widgets/camera_picker.dart b/lib/src/widgets/camera_picker.dart index ce7dc50..ea89476 100644 --- a/lib/src/widgets/camera_picker.dart +++ b/lib/src/widgets/camera_picker.dart @@ -378,7 +378,7 @@ class CameraPickerState extends State @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.