Removed redundant stopImageStream()

This commit is contained in:
Vadim 2023-08-08 11:32:41 +02:00
parent 0e6f050213
commit 7046b06bd8

View file

@ -28,7 +28,9 @@ class _CameraHistogramState extends State<CameraHistogram> {
@override
void dispose() {
widget.controller.stopImageStream();
/// There is no need to stop image stream here,
/// because this widget will be disposed when CameraController is disposed
/// widget.controller.stopImageStream();
super.dispose();
}