Skip to content

[Flutter Web] Migrate dom shims to a package provided by the Dart sdk when it is available. #113402

Closed as not planned

Description

@joshualitt

Because we only implemented the static interop variant of JS interop in Dart2Wasm, we actively migrated all of Flutter / dart:ui from dart:html to custom DOM shims. This bug tracks the effort to deprecate these shims, and replace them with a package provided from the Dart sdk when such a package exists.

Activity

  1. ditman commented on Oct 20, 2022

    @ditman
    Member

    Subscribing to this task, plugins/packages will also need to migrate from dart:html / bespoke static interop to this new package, for example:

  2. ditman commented on Oct 20, 2022

    @ditman
    Member

    @joshualitt is there a dart-lang/sdk task to track?

  3. added
    P2Important issues not at the top of the work list
    c: tech-debtTechnical debt, code quality, testing, etc.
    on Oct 20, 2022
  4. nshahan commented on Sep 25, 2025

    @nshahan
    Contributor

    @srujzs
    Is this still a long term goal?

  5. srujzs commented on Sep 26, 2025

    @srujzs
    Contributor

    I think we ended up going the opposite way with this. We did end up using package:web but then decided against it because that means Flutter users are then forced to use a specific version due to the pinning.

    I believe the plan is to keep the shims and at this point I also believe they've been migrated to extension types. So, this is not planned.

  6. github-actions commented on Oct 10, 2025

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  7. locked as resolved and limited conversation to collaborators on Oct 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listc: tech-debtTechnical debt, code quality, testing, etc.dependency: dartDart team may need to help usplatform-webWeb applications specificallyteam-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