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

Scanner reading a few times and stops reading #677

Open
FelipeLemosBellini opened this issue Jun 20, 2023 · 0 comments
Open

Scanner reading a few times and stops reading #677

FelipeLemosBellini opened this issue Jun 20, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@FelipeLemosBellini
Copy link

FelipeLemosBellini commented Jun 20, 2023

Scanner reading a few times and stops reading, so I have to close the screen and open it again, when removing the controller.dispose() this problem stops happening, it keeps reading several times.
I'm using the mobile scanner to read a QrCode with the controller created as follows in my viewModel

MobileScannerController scanController = MobileScannerController(formats: [BarcodeFormat.qrCode]);

don't use dispose

@OverRide
void dispose() {
scanController.dispose();
super.dispose();
}

mobile_scanner: ^3.2.0

Flutter 3.10.1 • Tools • Dart 3.0.1 • DevTools 2.23.1

@FelipeLemosBellini FelipeLemosBellini added the bug Something isn't working label Jun 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant