We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 06c18f5 commit 2b4b903Copy full SHA for 2b4b903
lib/src/widgets/camera_picker.dart
@@ -442,11 +442,7 @@ class CameraPickerState extends State<CameraPicker>
442
SystemChrome.setEnabledSystemUIOverlays(<SystemUiOverlay>[]);
443
}
444
445
- Future<void>.delayed(_kRouteDuration, () {
446
- if (mounted) {
447
- initCameras();
448
- }
449
- });
+ initCameras();
450
451
452
@override
@@ -584,6 +580,7 @@ class CameraPickerState extends State<CameraPicker>
584
580
585
581
try {
586
582
await controller.initialize();
583
+ safeSetState(() {});
587
// Call recording preparation first.
588
if (shouldPrepareForVideoRecording) {
589
await controller.prepareForVideoRecording();
0 commit comments