Skip to content

Remove requirement for experiment flag for Widget Preview gated on Flutter version with important fixes #5717

Closed

Description

@DanTup

Currently we only show the widget preview if dart.experimentalFlutterWidgetPreview is set and flutterCapabilities.supportsWidgetPreview (Flutter SDK is >= 3.36.0-1).

We should remove the requirement for the experiment flag for a version of the SDK that has all the fixes we think are necessary before showing this by default (by implementing a new capability flutterCapabilities.supportsWidgetPreviewByDefault).

I think flutter/flutter#175783 is the most significant fix, so we could gate it on the version that lands in, which would mean any subsequent beta branch would have it enabled by default (@bkonyi - does this seem good to you, or are there any other changes/fixes you think we should require?).

(fyi @jwren @anderdobo)

Activity

  1. added this to the v3.120.0 milestone on Sep 22, 2025
  2. added
    is enhancementAn enhancement or improvement that should be listed in release notes but is not a bug fix.
    in flutterRelates to running Flutter apps
    relies on sdk changesSomething that requires changes in the Dart/Flutter SDK to ship before it will become available
    on Sep 22, 2025
  3. DanTup commented on Sep 29, 2025

    @DanTup
    MemberAuthor

    Related PRs:

    The first one (which is probably the only critical one) has landed in flutter/flutter@b9ffd90 but there has been no version tag since it landed so we don't have a version we can use for that yet.

    Once we have a version we can add it to the change on the enable-widget-preview-by-default branch and merge it in.

  4. modified the milestones: v3.120.0, v3.120.1 on Sep 29, 2025
  5. DanTup commented on Oct 21, 2025

    @DanTup
    MemberAuthor

    This was done in dc30f6c for vNext and cherry-picked into stable v3.120.1 in 0559777.

  6. modified the milestones: v3.120.1, v3.122.0 on Oct 21, 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

    in flutterRelates to running Flutter appsin flutter widget previewRelates to the embedded Flutter widget previewis enhancementAn enhancement or improvement that should be listed in release notes but is not a bug fix.relies on sdk changesSomething that requires changes in the Dart/Flutter SDK to ship before it will become available

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions