diff --git a/packages/smooth_app/lib/pages/scan/ml_kit_scan_page.dart b/packages/smooth_app/lib/pages/scan/ml_kit_scan_page.dart index 8b6fe35587f..1596447dd8c 100644 --- a/packages/smooth_app/lib/pages/scan/ml_kit_scan_page.dart +++ b/packages/smooth_app/lib/pages/scan/ml_kit_scan_page.dart @@ -160,6 +160,7 @@ class MLKitScannerPageState extends State { setState(() {}); } await _controller?.dispose(); + _controller?.removeListener(() {}); _controller = null; }