Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 3.24.3, on Microsoft Windows [Version 10.0.19045.4651], locale da-DK)
[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
[√] Chrome - develop for the web
[√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.9.1)
[√] Android Studio (version 2024.1)
[√] VS Code (version 1.93.1)
[√] Network resources
The blue area is whats show from the overlaybuilder.
and the orange area is an approximation of the area where the scanWindow seems to be, as it only finds QR codes in this area of the screen.
I have also tried with boxconstraints rather than mediaquery with the same results:
flutter pub deps
: |-- mobile_scanner 5.2.3 | |-- flutter_web_plugins 0.0.0 | | |-- characters... | | |-- collection... | | |-- flutter... | | |-- material_color_utilities... | | |-- meta... | | '-- vector_math... | |-- plugin_platform_interface 2.1.8 | | '-- meta... | |-- web 0.5.1 | '-- flutter...flutter doctor
:Doctor summary (to see all details, run flutter doctor -v): [√] Flutter (Channel stable, 3.24.3, on Microsoft Windows [Version 10.0.19045.4651], locale da-DK) [√] Windows Version (Installed version of Windows is version 10 or higher) [√] Android toolchain - develop for Android devices (Android SDK version 35.0.0) [√] Chrome - develop for the web [√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.9.1) [√] Android Studio (version 2024.1) [√] VS Code (version 1.93.1) [√] Network resources
code based on the controller example: https://github.com/juliansteenbakker/mobile_scanner/blob/master/example/lib/barcode_scanner_controller.dart
with a build function like this:
The blue area is whats show from the overlaybuilder. and the orange area is an approximation of the area where the scanWindow seems to be, as it only finds QR codes in this area of the screen.
I have also tried with boxconstraints rather than mediaquery with the same results: