hocr_editor 0.0.1 copy "hocr_editor: ^0.0.1" to clipboard
hocr_editor: ^0.0.1 copied to clipboard

A flutter fullscreen widget, that displays hocr (xml) file along with original image and allows to edit the text in it.

2
likes
70/ 160
pub points
35
downloads

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

OK
Follow Dart file conventions
30 / 30trigger folding of the section

10/10 points: Provide a valid pubspec.yaml

5/5 points: Provide a valid README.md

5/5 points: Provide a valid CHANGELOG.md

10/10 points: Use an OSI-approved license

Detected license: MIT.

partial
Provide documentation
10 / 20trigger folding of the section

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

1 out of 14 API elements (7.1 %) have documentation comments.

Providing good documentation for libraries, classes, functions, and other API elements improves code readability and helps developers find and use your API. Document at least 20% of the public API elements.

To highlight public API members missing documentation consider enabling the public_member_api_docs lint.

Some symbols that are missing documentation: hocr_editor, hocr_editor.HOCREditingController, hocr_editor.HOCREditingController.HOCREditingController, hocr_editor.HOCREditingController.edit, hocr_editor.HOCREditingController.onCopyToClipboard.

10/10 points: Package has an example

failed
Platform support
20 / 20trigger folding of the section

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

  • ✓ Android

  • ✓ iOS

  • ✓ Windows

  • ✓ Linux

  • ✓ macOS

  • ✓ Web

These issues are present but do not affect the score, because they may not originate in your package:

Package does not support platform `Android`.

Because:

  • package:hocr_editor/hocr_editor.dart that imports:
  • package:hocr_editor/src/views/hocr_editor.dart that imports:
  • package:hocr_editor/src/views/widgets/menu/bottom_menu.dart that imports:
  • package:adaptive_dialog/adaptive_dialog.dart that imports:
  • package:adaptive_dialog/src/text_input_dialog/show_text_input_dialog.dart that imports:
  • package:adaptive_dialog/src/text_input_dialog/macos_text_input_dialog.dart that imports:
  • package:macos_ui/macos_ui.dart that declares support for platforms: macOS.
Package does not support platform `iOS`.

Because:

  • package:hocr_editor/hocr_editor.dart that imports:
  • package:hocr_editor/src/views/hocr_editor.dart that imports:
  • package:hocr_editor/src/views/widgets/menu/bottom_menu.dart that imports:
  • package:adaptive_dialog/adaptive_dialog.dart that imports:
  • package:adaptive_dialog/src/text_input_dialog/show_text_input_dialog.dart that imports:
  • package:adaptive_dialog/src/text_input_dialog/macos_text_input_dialog.dart that imports:
  • package:macos_ui/macos_ui.dart that declares support for platforms: macOS.
Package does not support platform `Windows`.

Because:

  • package:hocr_editor/hocr_editor.dart that imports:
  • package:hocr_editor/src/views/hocr_editor.dart that imports:
  • package:hocr_editor/src/views/widgets/menu/bottom_menu.dart that imports:
  • package:adaptive_dialog/adaptive_dialog.dart that imports:
  • package:adaptive_dialog/src/text_input_dialog/show_text_input_dialog.dart that imports:
  • package:adaptive_dialog/src/text_input_dialog/macos_text_input_dialog.dart that imports:
  • package:macos_ui/macos_ui.dart that declares support for platforms: macOS.
Package does not support platform `Linux`.

Because:

  • package:hocr_editor/hocr_editor.dart that imports:
  • package:hocr_editor/src/views/hocr_editor.dart that imports:
  • package:hocr_editor/src/views/widgets/menu/bottom_menu.dart that imports:
  • package:adaptive_dialog/adaptive_dialog.dart that imports:
  • package:adaptive_dialog/src/text_input_dialog/show_text_input_dialog.dart that imports:
  • package:adaptive_dialog/src/text_input_dialog/macos_text_input_dialog.dart that imports:
  • package:macos_ui/macos_ui.dart that declares support for platforms: macOS.
Package does not support platform `Web`.

Because:

  • package:hocr_editor/hocr_editor.dart that imports:
  • package:hocr_editor/src/views/hocr_editor.dart that imports:
  • package:hocr_editor/src/views/widgets/menu/bottom_menu.dart that imports:
  • package:adaptive_dialog/adaptive_dialog.dart that imports:
  • package:adaptive_dialog/src/text_input_dialog/show_text_input_dialog.dart that imports:
  • package:adaptive_dialog/src/text_input_dialog/macos_text_input_dialog.dart that imports:
  • package:macos_ui/macos_ui.dart that declares support for platforms: macOS.

0/0 points: WASM compatibility

Unable to detect compatibility with runtime wasm, and this package will not be rewarded full points in a future version of the scoring model.

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

failed
Pass static analysis
0 / 50trigger folding of the section

0/50 points: code has no errors, warnings, lints, or formatting issues

Found 4 issues. Showing the first 2:

ERROR: The getter 'selectedRowColor' isn't defined for the type 'ThemeData'.

lib/src/views/widgets/menu/bottom_menu.dart:51:38

   ╷
51 │             color: Theme.of(context).selectedRowColor,
   │                                      ^^^^^^^^^^^^^^^^
   ╵

To reproduce make sure you are using the lints_core and run flutter analyze lib/src/views/widgets/menu/bottom_menu.dart

WARNING: The receiver can't be null, so the null-aware operator '?.' is unnecessary.

lib/src/views/widgets/interactive_text.dart:41:34

   ╷
41 │               Overlay.of(context)?.context.findRenderObject() as RenderBox?;
   │                                  ^^
   ╵

To reproduce make sure you are using the lints_core and run flutter analyze lib/src/views/widgets/interactive_text.dart

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

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

Package Constraint Compatible Latest
adaptive_dialog ^1.8.0+1 1.10.1 2.4.0
collection ^1.16.0 1.19.0 1.19.1
dart_hocr ^0.1.0 0.1.0 0.1.0
flutter flutter 0.0.0 0.0.0
flutter_riverpod ^2.0.2 2.6.1 2.6.1
font_awesome_flutter ^10.2.1 10.8.0 10.8.0
image ^3.2.2 3.3.0 4.5.2
material_design_icons_flutter ^5.0.6996 5.0.6996 7.0.7296
Transitive dependencies
Package Constraint Compatible Latest
animations - 2.0.11 2.0.11
appkit_ui_element_colors - 1.0.0 1.0.0
archive - 3.6.1 4.0.2
async - 2.11.0 2.12.0
boolean_selector - 2.1.1 2.1.2
characters - 1.3.0 1.4.0
clock - 1.1.1 1.1.2
crypto - 3.0.6 3.0.6
dynamic_color - 1.7.0 1.7.0
equatable - 2.0.7 2.0.7
fake_async - 1.3.1 1.3.2
flutter_test - 0.0.0 0.0.0
gradient_borders - 1.0.1 1.0.1
intersperse - 2.0.0 2.0.0
leak_tracker - 10.0.7 10.0.8
leak_tracker_flutter_testing - 3.0.8 3.0.9
leak_tracker_testing - 3.0.1 3.0.1
macos_ui - 2.1.4 2.1.4
macos_window_utils - 1.6.1 1.6.1
matcher - 0.12.16+1 0.12.17
material_color_utilities - 0.11.1 0.12.0
meta - 1.15.0 1.16.0
path - 1.9.0 1.9.1
petitparser - 6.0.2 6.0.2
plugin_platform_interface - 2.1.8 2.1.8
riverpod - 2.6.1 2.6.1
sky_engine - 0.0.0 0.0.0
source_span - 1.10.0 1.10.1
stack_trace - 1.12.0 1.12.1
state_notifier - 1.0.0 1.0.0
stream_channel - 2.1.2 2.1.3
string_scanner - 1.3.0 1.4.1
term_glyph - 1.2.1 1.2.2
test_api - 0.7.3 0.7.4
typed_data - 1.4.0 1.4.0
vector_math - 2.1.4 2.1.4
vm_service - 14.3.0 15.0.0
xml - 6.5.0 6.5.0

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

Found 3 issues. Showing the first 2:

The constraint `^1.8.0+1` on adaptive_dialog does not support the stable version `2.0.0`.

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

The constraint `^3.2.2` on image does not support the stable version `4.0.0`.

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

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

0/20 points: Compatible with dependency constraint lower bounds

downgrade analysis failed failed with 1 error:

  • UNDEFINED_GETTER - lib/src/views/widgets/menu/bottom_menu.dart:51:38 - The getter 'selectedRowColor' isn't defined for the type 'ThemeData'.

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.17, Flutter 3.27.0, Dart 3.6.0.

Check the analysis log for details.

2
likes
70
points
35
downloads

Publisher

verified publishercloudonlanapps.com

Weekly Downloads

A flutter fullscreen widget, that displays hocr (xml) file along with original image and allows to edit the text in it.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

adaptive_dialog, collection, dart_hocr, flutter, flutter_riverpod, font_awesome_flutter, image, material_design_icons_flutter

More

Packages that depend on hocr_editor