The ocr_reading package contains a number of useful containers with functionality that can help you with building ocr reading screens for your app. The package contains image container and result text.
Features
Will be added later.
Getting started
packages need for use this library:
google_mlkit_text_recognition: ^0.13.0 (use their latest version)
gallery_picker: ^0.5.1 (use their latest version)
Usage
class OcrReading extends StatelessWidget {
const OcrReading({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return Scaffold(
body: Center(
child: OcrReading(
emptyTextMessageForImage = "Pick an image for text recognition",
imageWidth = 200,
emptyTextMessageForText = "No result.",
textFontSize = 25
),
),
);
}
}