Skip to content

Commit

Permalink
🐛 Fix #197 (comment)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexV525 committed Oct 30, 2023
1 parent 226512d commit 7c8ab0f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/src/states/camera_picker_state.dart
Original file line number Diff line number Diff line change
Expand Up @@ -976,8 +976,12 @@ class CameraPickerState extends State<CameraPicker>
}

recordStopwatch.stop();
if (!controller.value.isRecordingVideo) {
if (innerController == null || !controller.value.isRecordingVideo) {
recordCountdownTimer?.cancel();
safeSetState(() {
isControllerBusy = false;
isShootingButtonAnimate = false;
});
return;
}
safeSetState(() {
Expand Down

0 comments on commit 7c8ab0f

Please sign in to comment.