diff --git a/.flutter-plugins b/.flutter-plugins deleted file mode 100644 index d9d249a..0000000 --- a/.flutter-plugins +++ /dev/null @@ -1,8 +0,0 @@ -# This is a generated file; do not edit or check into version control. -camera=/Users/yo/.pub-cache/hosted/pub.dev/camera-0.10.5+7/ -camera_android=/Users/yo/.pub-cache/hosted/pub.dev/camera_android-0.10.8+15/ -camera_avfoundation=/Users/yo/.pub-cache/hosted/pub.dev/camera_avfoundation-0.9.13+8/ -camera_web=/Users/yo/.pub-cache/hosted/pub.dev/camera_web-0.3.2+3/ -flutter_plugin_android_lifecycle=/Users/yo/.pub-cache/hosted/pub.dev/flutter_plugin_android_lifecycle-2.0.17/ -google_mlkit_commons=/Users/yo/.pub-cache/hosted/pub.dev/google_mlkit_commons-0.6.1/ -google_mlkit_text_recognition=/Users/yo/.pub-cache/hosted/pub.dev/google_mlkit_text_recognition-0.11.0/ diff --git a/.flutter-plugins-dependencies b/.flutter-plugins-dependencies deleted file mode 100644 index 8d4ea65..0000000 --- a/.flutter-plugins-dependencies +++ /dev/null @@ -1 +0,0 @@ -{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"camera_avfoundation","path":"/Users/yo/.pub-cache/hosted/pub.dev/camera_avfoundation-0.9.13+8/","native_build":true,"dependencies":[]},{"name":"google_mlkit_commons","path":"/Users/yo/.pub-cache/hosted/pub.dev/google_mlkit_commons-0.6.1/","native_build":true,"dependencies":[]},{"name":"google_mlkit_text_recognition","path":"/Users/yo/.pub-cache/hosted/pub.dev/google_mlkit_text_recognition-0.11.0/","native_build":true,"dependencies":["google_mlkit_commons"]}],"android":[{"name":"camera_android","path":"/Users/yo/.pub-cache/hosted/pub.dev/camera_android-0.10.8+15/","native_build":true,"dependencies":["flutter_plugin_android_lifecycle"]},{"name":"flutter_plugin_android_lifecycle","path":"/Users/yo/.pub-cache/hosted/pub.dev/flutter_plugin_android_lifecycle-2.0.17/","native_build":true,"dependencies":[]},{"name":"google_mlkit_commons","path":"/Users/yo/.pub-cache/hosted/pub.dev/google_mlkit_commons-0.6.1/","native_build":true,"dependencies":[]},{"name":"google_mlkit_text_recognition","path":"/Users/yo/.pub-cache/hosted/pub.dev/google_mlkit_text_recognition-0.11.0/","native_build":true,"dependencies":["google_mlkit_commons"]}],"macos":[],"linux":[],"windows":[],"web":[{"name":"camera_web","path":"/Users/yo/.pub-cache/hosted/pub.dev/camera_web-0.3.2+3/","dependencies":[]}]},"dependencyGraph":[{"name":"camera","dependencies":["camera_android","camera_avfoundation","camera_web","flutter_plugin_android_lifecycle"]},{"name":"camera_android","dependencies":["flutter_plugin_android_lifecycle"]},{"name":"camera_avfoundation","dependencies":[]},{"name":"camera_web","dependencies":[]},{"name":"flutter_plugin_android_lifecycle","dependencies":[]},{"name":"google_mlkit_commons","dependencies":[]},{"name":"google_mlkit_text_recognition","dependencies":["google_mlkit_commons"]}],"date_created":"2024-04-14 21:09:41.344093","version":"3.19.2"} \ No newline at end of file diff --git a/.gitignore b/.gitignore index 96486fd..f11ef17 100644 --- a/.gitignore +++ b/.gitignore @@ -23,8 +23,13 @@ migrate_working_dir/ # Flutter/Dart/Pub related # Libraries should not include pubspec.lock, per https://dart.dev/guides/libraries/private-files#pubspeclock. -/pubspec.lock **/doc/api/ +**/ios/Flutter/.last_build_id .dart_tool/ +.flutter-plugins +.flutter-plugins-dependencies .packages -build/ +.pub-cache/ +.pub/ +/build/ +/pubspec.lock diff --git a/CHANGELOG.md b/CHANGELOG.md index a86d915..07b40bb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.0.4 + +* Upgrade dependencies. + ## 0.0.3 * Add documentation to CameraUtil and FocusedAreaOCRPainter classes. diff --git a/lib/focused_area_ocr_flutter.dart b/lib/focused_area_ocr_flutter.dart index 530d28d..4fbefaa 100644 --- a/lib/focused_area_ocr_flutter.dart +++ b/lib/focused_area_ocr_flutter.dart @@ -11,7 +11,7 @@ import 'camera_util.dart'; /// A widget for capturing live camera feed and performing OCR on a focused area of the camera view. class FocusedAreaOCRView extends StatefulWidget { const FocusedAreaOCRView({ - Key? key, + super.key, this.focusedAreaWidth = 200.0, this.focusedAreaHeight = 40.0, this.focusedAreaCenter = Offset.zero, @@ -26,7 +26,7 @@ class FocusedAreaOCRView extends StatefulWidget { this.onCameraFeedReady, this.onDetectorViewModeChanged, this.onCameraLensDirectionChanged, - }) : super(key: key); + }); /// The width of the focused area. final double? focusedAreaWidth; diff --git a/pubspec.yaml b/pubspec.yaml index 426bf49..c0e9c4a 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: focused_area_ocr_flutter description: This is a package to get text in the focused area on the camera. It is created based on OCR technology by https://pub.dev/packages/google_mlkit_text_recognition. -version: 0.0.3 +version: 0.0.4 repository: https://github.com/KobayashiYoh/focused_area_ocr_flutter environment: @@ -10,14 +10,14 @@ environment: dependencies: flutter: sdk: flutter - google_mlkit_commons: ^0.6.1 - google_mlkit_text_recognition: ^0.11.0 - camera: ^0.10.5+7 + google_mlkit_commons: ^0.7.1 + google_mlkit_text_recognition: ^0.13.0 + camera: ^0.10.0+6 dev_dependencies: flutter_test: sdk: flutter - flutter_lints: ^2.0.0 + flutter_lints: ^4.0.0 # For information on the generic Dart part of this file, see the # following page: https://dart.dev/tools/pub/pubspec