I could only reproduce this on release mode, not profile or debug. On a Samsung Galaxy A21s, the first time I open the camera (with the CameraAwesome widget), there's a black screen with the following error message:
I/flutter (15729): Camerawesome start after resume state failed: PlatformException(CAMERA_MUST_BE_INIT, init must be call before start, , null)
If I close the route and open it again, the initialization error no longer happens, seems to be only the first time that it's opened.
Expected results
Camera initializes and viewfinder is displayed
Actual results
There was an error initializing the camera
About your device
Brand
Model
OS
Samsung
Galaxy A21s
Android 12, OneUI 4.1
Flutter Doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.3.3, on Microsoft Windows [Versi¢n 10.0.22621.521], locale es-ES)
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2021.3)
[✓] Connected device (3 available)
[✓] HTTP Host Availability
Steps to Reproduce
I could only reproduce this on release mode, not profile or debug. On a Samsung Galaxy A21s, the first time I open the camera (with the
CameraAwesome
widget), there's a black screen with the following error message:If I close the route and open it again, the initialization error no longer happens, seems to be only the first time that it's opened.
Expected results
Camera initializes and viewfinder is displayed
Actual results
There was an error initializing the camera
About your device
Flutter Doctor