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

QRImageView causes other widgets fail to register a buttons onPressed event in web mode. works fine in desktop mode #212

Open
IHKodifier opened this issue Nov 13, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@IHKodifier
Copy link

Describe the bug
I have a small chrome extension using flutter at https://github.com/IHKodifier/qrq_chrome_extension.git using qr_flutter

To Reproduce
Steps to reproduce the behavior:

  1. run on a target device
  2. enter any text in the text box
  3. click the add button.
  4. the newly created qr code should appear in the grid below.
  5. on desktop steps 1-5 produce expected result
  6. However on chrome/edge steps 1-4 does not trigger the step 5

interestingly when the textbox is empty the button onPressed handler is sdupposed to do nothing. it does hit the handler when clicked once textfield is empty but as soon as any text is entered in the rextbox, the QRImageView in the view bwcomes visible, handler stops being invoked. i suspect the QRImageView is the culprit which once instered in the widget/element tree , hijacks click events on the elevatedbutton in the same view.
[√] Flutter (Channel stable, 3.13.7, on Microsoft Windows [Version 10.0.22631.2428], locale en-US)
• Flutter version 3.13.7 on channel stable at C:\flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 2f708eb839 (5 weeks ago), 2023-10-09 09:58:08 -0500
• Engine revision a794cf2681
• Dart version 3.1.3
• DevTools version 2.25.0

[√] Windows Version (Installed version of Windows is version 10 or higher)

[√] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
• Android SDK at C:/androidSdk
• Platform android-33, build-tools 33.0.0
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
• All Android licenses accepted.

[√] Chrome - develop for the web
• Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.4.0)
• Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community
• Visual Studio Community 2022 version 17.4.33103.184
• Windows 10 SDK version 10.0.22000.0

[√] Android Studio (version 2020.3)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin can be installed from:
https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)

[√] VS Code (version 1.84.2)
• VS Code at C:\Users\Ihtiram\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.76.0

[√] Connected device (3 available)
• Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.22631.2428]
• Chrome (web) • chrome • web-javascript • Google Chrome 119.0.6045.124
• Edge (web) • edge • web-javascript • Microsoft Edge 119.0.2151.58

[√] Network resources
• All expected network resources are available.

• No issues found!

i noticed this issue after upgradingh to 3.13.9 tried downgrading to 3.13.7 (as seen currently) but to no purpose.
my chrome version:

Google Chrome 119.0.6045.124 (Official Build) (64-bit) (cohort: Stable)
Revision b9e5b8a154549bb57a57b9c822607bc3289fc5b9-refs/branch-heads/6045@{#1231}
OS Windows 11 Version 23H2 (Build 22631.2428)
JavaScript V8 11.9.169.6
User Agent Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36
Command Line "C:\Program Files\Google\Chrome\Application\chrome.exe" --no-startup-window /prefetch:5 --flag-switches-begin --flag-switches-end --origin-trial-disabled-features=WebGPU

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: image
  • Browser [image
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

@IHKodifier IHKodifier added the bug Something isn't working label Nov 13, 2023
@lukef lukef removed their assignment Nov 14, 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

2 participants