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.

70/ 160
pub points
14
downloads

We analyzed this package 3 days ago, and awarded it 70 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.

Partially passed report section
Provide documentation
10 / 20trigger folding of the section

Partially passed check 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.new, hocr_editor.HOCREditingController.edit, hocr_editor.HOCREditingController.onCopyToClipboard.

Passed check 10/10 points: Package has an example

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

Passed check 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.
Failed report section
Pass static analysis
0 / 50trigger folding of the section

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

Found 12 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 report section
Support up-to-date dependencies
10 / 40trigger folding of the section

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

Package Constraint Compatible Latest Notes
adaptive_dialog ^1.8.0+1 1.10.1 2.6.0
collection ^1.16.0 1.19.1 1.19.1
dart_hocr ^0.1.0 0.1.0 0.1.0
flutter_riverpod ^2.0.2 2.6.1 3.1.0
font_awesome_flutter ^10.2.1 10.12.0 10.12.0
image ^3.2.2 3.3.0 4.7.2
material_design_icons_flutter ^5.0.6996 5.0.6996 7.0.7296
Transitive dependencies
Package Constraint Compatible Latest Notes
animations - 2.1.1 2.1.1
appkit_ui_element_colors - 1.0.1 1.0.1
archive - 3.6.1 4.0.7
async - 2.13.0 2.13.0
boolean_selector - 2.1.2 2.1.2
characters - 1.4.0 1.4.1
clock - 1.1.2 1.1.2
crypto - 3.0.7 3.0.7
dynamic_color - 1.8.1 1.8.1
equatable - 2.0.8 2.0.8
fake_async - 1.3.3 1.3.3
gradient_borders - 1.0.2 1.0.2
intersperse - 2.0.0 2.0.0
leak_tracker - 11.0.2 11.0.2
leak_tracker_flutter_testing - 3.0.10 3.0.10
leak_tracker_testing - 3.0.2 3.0.2
macos_ui - 2.2.2 2.2.2
macos_window_utils - 1.9.1 1.9.1
matcher - 0.12.17 0.12.18
material_color_utilities - 0.11.1 0.13.0
meta - 1.17.0 1.17.0
path - 1.9.1 1.9.1
petitparser - 7.0.1 7.0.1
plugin_platform_interface - 2.1.8 2.1.8
riverpod - 2.6.1 3.1.0
source_span - 1.10.1 1.10.1
stack_trace - 1.12.1 1.12.1
state_notifier - 1.0.0 1.0.0
stream_channel - 2.1.4 2.1.4
string_scanner - 1.4.1 1.4.1
term_glyph - 1.2.2 1.2.2
test_api - 0.7.7 0.7.9
typed_data - 1.4.0 1.4.0
vector_math - 2.2.0 2.2.0
vm_service - 15.0.2 15.0.2
xml - 6.6.1 6.6.1

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

Found 4 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 `^2.0.2` on flutter_riverpod does not support the stable version `3.0.0`.

Try running dart pub upgrade --major-versions flutter_riverpod 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_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.23.5, Flutter 3.38.5, Dart 3.10.4.

Check the analysis log for details.

Weekly downloads

Display as:
By versions:
2
likes
70
points
14
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