Skip to content

image_picker shows an html input file button on web browser #139442

@sebat94

Description

@sebat94

Is there an existing issue for this?

Steps to reproduce

Easy to reproduce:

  1. Download the repository where I reproduced the bug ( https://github.com/sebat94/flutter_image_picker_bug )
  2. Once the application is started, select an image by clicking the grey circle and then click on the link below that navigates to the next page.
  3. On the next page you will see the bug.

I am debugging my flutter app with chrome version: '119.0.0.0'

Note: This bug was reported some time ago but was not resolved due to lack of evidence. ( 109782 )

Expected results

You will see an html input file
image

Actual results

When I select an image and redirect to a new page, an html input file appears on the new page.

I also tried a "pushReplacement" just in case removing the previous Page from the stack made any difference, but that didn't work either.

Interesting fact: The input file appears in my web browser but does not exist in my widget tree.
image

Code sample

https://github.com/sebat94/flutter_image_picker_bug

Screenshots or Video

Screenshots / Video demonstration
flutter_image_picker_web_bug.mp4

Logs

No response

Flutter Doctor output

Doctor output
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 3.13.8, on Microsoft Windows [Versi¢n 10.0.22621.2715], locale es-ES)
[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[√] Chrome - develop for the web
[√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.7.5)
[√] Android Studio (version 2022.3)
[√] VS Code (version 1.84.2)
[√] Connected device (3 available)
[√] Network resources

• No issues found!

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listfound in release: 3.16Found to occur in 3.16found in release: 3.18Found to occur in 3.18has reproducible stepsThe issue has been confirmed reproducible and is ready to work onp: image_pickerThe Image Picker plugin.packageflutter/packages repository. See also p: labels.platform-webWeb applications specificallyr: fixedIssue is closed as already fixed in a newer versionteam-webOwned by Web platform teamtriaged-webTriaged by Web platform team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions