diff --git a/lib/ocr_scan/widget/live_scan_widget.dart b/lib/ocr_scan/widget/live_scan_widget.dart index b5c6751..920dfb3 100644 --- a/lib/ocr_scan/widget/live_scan_widget.dart +++ b/lib/ocr_scan/widget/live_scan_widget.dart @@ -151,7 +151,7 @@ class LiveScanWidgetState extends ScanWidgetState { final camera = _cameras[0]; _controller = CameraController( camera, - ResolutionPreset.max, + ResolutionPreset.high, enableAudio: false, ); _controller?.initialize().then((_) { diff --git a/lib/ocr_scan/widget/static_scan_widget.dart b/lib/ocr_scan/widget/static_scan_widget.dart index 02de2e7..fb8bb16 100644 --- a/lib/ocr_scan/widget/static_scan_widget.dart +++ b/lib/ocr_scan/widget/static_scan_widget.dart @@ -10,7 +10,7 @@ import 'package:path/path.dart' as path; import 'package:pdf_render/pdf_render.dart'; class StaticScanWidget extends ScanWidget { - File file; + final File file; StaticScanWidget({ super.key, required super.scanModules,