Skip to content
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

lib/mobile_scanner.dart doesn't export the overlays in v6.0.3 / does in v7.0.0-beta.4 #1296

Open
kevin-fryskict opened this issue Jan 16, 2025 · 1 comment

Comments

@kevin-fryskict
Copy link

Hi,

I'm trying to use this fantastic package and got it working by simply copying the contents of the barcode_scanner_simple.dart from the example. Now that I have it working, I'd like to "upgrade" to the barcode_scanner_window.dart, however it doesn't recognize the BarcodeOverlay and ScanWindowOverlay classes.
It seems that in the lib/mobile_scanner.dart file, the following four lines are not included in the latest v6 release, but are already in the v7 release.

lib/mobile_scanner.dart @ v6.0.3

export 'src/overlay/barcode_overlay.dart';
export 'src/overlay/barcode_painter.dart';
export 'src/overlay/scan_window_overlay.dart';
export 'src/overlay/scan_window_painter.dart';

Is it possible to also export them in the v6 release, so that we can use the overlays in the current stable release?
Thanks for the hard work!

@navaronbracke
Copy link
Collaborator

navaronbracke commented Jan 16, 2025

Yes, those widgets were only created in the version 7.0.0 beta cycle.
I woud defer to @juliansteenbakker for that decision. Although, there were some bugs with the overlays iirc.

  1. There is a flickering bug in the scan window overlay widget
  2. The barcode painter is not repainting with no square when the barcode is no longer within the camera view

If you would like to investigate both bugs, then we can definitely look into moving over those widgets into 6.0.4 or something.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants