vbalagovic / flutter_scalable_ocr

Flutter scalable OCR package is a wrapper around google_mlkit_text_recognition where you can partialy select part of camera which text will be processed of.
https://pub.dev/packages/flutter_scalable_ocr
MIT License
60 stars 34 forks source link

Compile error when using the repo as reference #13

Closed Swepilot closed 10 months ago

Swepilot commented 10 months ago

When referencing this repo (or a fork of it) directly in pubspec.yaml I get a compilation error:

_Error (Xcode): ../../.pub-cache/git/flutter_scalable_ocr-7e74e46c3ecbacf791364f9be309e62a29c6b544/lib/flutter_scalableocr.dart:51:24: Error: Can't declare a member that conflicts with an inherited one.

Using version 2.0.0 from pub.dev does not produce this error.

Issue seemes to be introduced with this commit: https://github.com/vbalagovic/flutter_scalable_ocr/blame/7e74e46c3ecbacf791364f9be309e62a29c6b544/lib/flutter_scalable_ocr.dart#L51

Chaning to ScalableOCRState createState() => ScalableOCRState(); solves the issue

vbalagovic commented 10 months ago