Skip to content

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

@DanTup

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)

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