flutter_camera_ml_vision – CameraMlVision + aspectRatio

I have the following code: CustomPaint( foregroundPainter: new DetectedTextBoxPainter(_ValueNotifier),//new TestPainter(_ValueNotifier), child: new AspectRatio( aspectRatio: _controller.value.aspectRatio, //child: CameraPreview(_controller) child: CameraMlVision<VisionText>( resolution: ResolutionPreset.max, detector: FirebaseVision.instance.textRecognizer().processImage, onResult: (VisionText vt) { if (!mounted ) { return; } if (vt.text.length == 0) return; _ValueNotifier.value = new Tuple2(vt, _controller.value.aspectRatio); }, ) ) ), The controller, which is usually passed to CameraPreview,…

Details