-
-
Notifications
You must be signed in to change notification settings - Fork 287
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: 3674 - simplified the barcode scan with native solution #3694
Conversation
Deleted files: * tons of them New file: * `smooth_qr_view.dart`: QR View. Impacted files: * `app_test.dart`: removed reference to specific scanner * `basic_test.dart`: removed reference to specific scanner * `camera_helper.dart`: removed now useless code * `camera_scan_page.dart`: HIGHLY simplified the code with the use of new class `SmoothQRView` * `constant_icons.dart`: added a "camera flip" icon * `labeler.yml`: removed reference to now removed files * `main.dart`: removed reference to specific scanner * `main_fdroid.dart`: removed reference to specific scanner * `main_google_play.dart`: removed reference to specific scanner * `main_ios.dart`: removed reference to specific scanner * `pubspec.lock`: wtf * `pubspec.yaml`: added `qr_code_scanner`; removed reference to specific camera and specific scanner * `scan_page.dart`: simplified the display - camera on top, carousel on bottom * `user_preferences_dev_mode.dart`: removed reference to camera post frame callback duration and scan area settings * `user_preferences_settings.dart`: removed reference to file/byte camera mode computation setting
Codecov Report
@@ Coverage Diff @@
## develop #3694 +/- ##
==========================================
+ Coverage 9.34% 9.79% +0.44%
==========================================
Files 272 264 -8
Lines 13722 13010 -712
==========================================
- Hits 1283 1274 -9
+ Misses 12439 11736 -703
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd really like to have a thorough discussion about this, it's the 3rd time we change scanner, but now we're in production. I've added elements to the Barcode Scanning document.
https://docs.google.com/document/d/1nxjyZD8NKM28w1J5LPhMybIRiw1t-31gB3mq39XtFxw/edit#
Can we schedule a discussion sometime this week ?
@teolemon Please set an appointment and tell me a day in advance. Additional thoughts... The previous MLKit implementation:
To me, those are only nice-to-haves:
My recent work on the barcode scanner provided me with food for thought.
With those widgets we'd be then able to say something like that in Smoothie:
If I started this PR it was because:
If someone else could fix the P0 issues I referred to while keeping MLKit I'd be more than happy. |
Because its mentioned above - i installed 4.5.0 now and tried it: #3427 is not fixed unfortunately. The camera seems to refocus every 2-3 seconds but thats it. Thanks for your efforts! |
@natrius This PR was not merged eventually. |
What I am wondering right now, is this refocusing a "big" problem, because we use the same camera implementation on ever store only the scanning engine is changed |
@M123-dev That's the whole idea: being able to split in OOP a generic widget, camera preview and barcode scan algorithm. |
Deleted files:
New file:
smooth_qr_view.dart
: QR View.Impacted files:
app_test.dart
: removed reference to specific scannerbasic_test.dart
: removed reference to specific scannercamera_helper.dart
: removed now useless codecamera_scan_page.dart
: HIGHLY simplified the code with the use of new classSmoothQRView
constant_icons.dart
: added a "camera flip" iconlabeler.yml
: removed reference to now removed filesmain.dart
: removed reference to specific scannermain_fdroid.dart
: removed reference to specific scannermain_google_play.dart
: removed reference to specific scannermain_ios.dart
: removed reference to specific scannerpubspec.lock
: wtfpubspec.yaml
: addedqr_code_scanner
; removed reference to specific camera and specific scannerscan_page.dart
: simplified the display - camera on top, carousel on bottomuser_preferences_dev_mode.dart
: removed reference to camera post frame callback duration and scan area settingsuser_preferences_settings.dart
: removed reference to file/byte camera mode computation settingWhat
camera
package (which does not give entire satisfaction) for the barcode scanning.flutter run
qr_code_scanner
provides: a single widget, with camera based on native libraries.Screenshot
Fixes bug(s)
Part of