flutter_scalable_ocr 2.2.1 copy "flutter_scalable_ocr: ^2.2.1" to clipboard
flutter_scalable_ocr: ^2.2.1 copied to clipboard

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.

113
likes
120/ 160
pub points
1.72k
downloads

We analyzed this package 2 days ago, and awarded it 120 pub points (of a possible 160):

Passed report section
Follow Dart file conventions
30 / 30trigger folding of the section

Passed check 10/10 points: Provide a valid pubspec.yaml

Passed check 5/5 points: Provide a valid README.md

Passed check 5/5 points: Provide a valid CHANGELOG.md

Passed check 10/10 points: Use an OSI-approved license

Detected license: MIT.

Passed report section
Provide documentation
20 / 20trigger folding of the section

Passed check 10/10 points: 20% or more of the public API has dartdoc comments

29 out of 56 API elements (51.8 %) have documentation comments.

Some symbols that are missing documentation: coordinates_translator, coordinates_translator.getRatioHeight, coordinates_translator.getRatioWidth, coordinates_translator.translateX, coordinates_translator.translateY.

Passed check 10/10 points: Package has an example

Failed report section
Platform support
20 / 20trigger folding of the section

Passed check 20/20 points: Supports 2 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)

  • ✓ Android

  • ✓ iOS

These platforms are not supported:

Package does not support platform `Windows`.

Because:

  • package:flutter_scalable_ocr/flutter_scalable_ocr.dart that declares support for platforms: Android, iOS.
Package does not support platform `Linux`.

Because:

  • package:flutter_scalable_ocr/flutter_scalable_ocr.dart that declares support for platforms: Android, iOS.
Package does not support platform `macOS`.

Because:

  • package:flutter_scalable_ocr/flutter_scalable_ocr.dart that declares support for platforms: Android, iOS.
Package does not support platform `Web`.

Because:

  • package:flutter_scalable_ocr/flutter_scalable_ocr.dart that declares support for platforms: Android, iOS.

Failed check 0/0 points: WASM compatibility

Package not compatible with runtime wasm

Because:

  • package:flutter_scalable_ocr/flutter_scalable_ocr.dart that imports:
  • package:google_mlkit_text_recognition/google_mlkit_text_recognition.dart that imports:
  • package:google_mlkit_text_recognition/src/text_recognizer.dart that imports:
  • package:google_mlkit_commons/google_mlkit_commons.dart that imports:
  • package:google_mlkit_commons/src/input_image.dart that imports:
  • dart:io

This package is not compatible with runtime wasm, and will not be rewarded full points in a future version of the scoring model.

See https://dart.dev/web/wasm for details.

Partially passed report section
Pass static analysis
40 / 50trigger folding of the section

Partially passed check 40/50 points: code has no errors, warnings, lints, or formatting issues

INFO: Statements in an if should be enclosed in a block.

lib/flutter_scalable_ocr.dart:299:71

299 │         (Platform.isIOS && imageFormat != InputImageFormat.bgra8888)) return null;
    │                                                                       ^^^^^^^^^^^^
    ╵
copied to clipboard

To reproduce make sure you are using the lints_core and run flutter analyze lib/flutter_scalable_ocr.dart

/tmp/pana_VESYYY/lib/flutter_scalable_ocr.dart doesn't match the Dart formatter.

To format your files run: dart format .

Failed report section
Support up-to-date dependencies
10 / 40trigger folding of the section

Partially passed check 0/10 points: All of the package dependencies are supported in the latest version

Package Constraint Compatible Latest Notes
camera ^0.10.2+9 0.10.6 0.11.1
google_mlkit_commons ^0.9.0 0.9.0 0.11.0
google_mlkit_text_recognition ^0.14.0 0.14.0 0.15.0
Transitive dependencies
Package Constraint Compatible Latest Notes
camera_android - 0.10.10+1 0.10.10+1
camera_avfoundation - 0.9.18+13 0.9.18+13
camera_platform_interface - 2.10.0 2.10.0
camera_web - 0.3.5 0.3.5
characters - 1.4.0 1.4.0
collection - 1.19.1 1.19.1
cross_file - 0.3.4+2 0.3.4+2
flutter_plugin_android_lifecycle - 2.0.27 2.0.27
material_color_utilities - 0.11.1 0.12.0
meta - 1.16.0 1.16.0
plugin_platform_interface - 2.1.8 2.1.8
stream_transform - 2.1.1 2.1.1
vector_math - 2.1.4 2.1.4
web - 1.1.1 1.1.1

To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.

Found 3 issues. Showing the first 2:

The constraint `^0.10.2+9` on camera does not support the stable version `0.11.0`.

Try running dart pub upgrade --major-versions camera to update the constraint.

The constraint `^0.9.0` on google_mlkit_commons does not support the stable version `0.10.0`, that was published 12 days ago.

When google_mlkit_commons is 30 days old, this package will no longer be awarded points in this category.

Try running dart pub upgrade --major-versions google_mlkit_commons to update the constraint.

Passed check 10/10 points: Package supports latest stable Dart and Flutter SDKs

Failed check 0/20 points: Compatible with dependency constraint lower bounds

downgrade analysis failed failed with 1 error:

  • UNDEFINED_ENUM_CONSTANT - lib/flutter_scalable_ocr.dart:208:30 - There's no constant named 'nv21' in 'ImageFormatGroup'.

Run flutter pub downgrade and then flutter analyze to reproduce the above problem.

You may run dart pub upgrade --tighten to update your dependency constraints, see dart.dev/go/downgrade-testing for details.

Analyzed with Pana 0.22.20, Flutter 3.29.2, Dart 3.7.2.

Check the analysis log for details.

Weekly downloads

Display as:
By versions:
Jun 29Jul 27Aug 24Sep 21Oct 19Nov 16Dec 14Jan 11Feb 8Mar 80100200300400500600>=0.0.0-0 <1.0.0>=1.0.0-0 <2.0.0>=2.0.0-0 <3.0.0
113
likes
120
points
1.72k
downloads

Publisher

verified publisherqedcode.io

Weekly Downloads

2024.09.14 - 2025.03.29

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.

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

camera, flutter, google_mlkit_commons, google_mlkit_text_recognition

More

Packages that depend on flutter_scalable_ocr