Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions lib/ui/camera_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ class _CameraViewState extends State<CameraView> with WidgetsBindingObserver {
void dispose() {
WidgetsBinding.instance.removeObserver(this);
cameraController.dispose();
isolateUtils.stopIsolate();
super.dispose();
}
}
4 changes: 4 additions & 0 deletions lib/utils/isolate_utils.dart
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ class IsolateUtils {
}
}
}

void stopIsolate() {
_isolate.kill();
}
}

/// Bundles data to pass between Isolate
Expand Down