You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Remove requirement for experiment flag for Widget Preview gated on Flutter version with important fixes #5717
Currently we only show the widget preview if dart.experimentalFlutterWidgetPreview is set andflutterCapabilities.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?).
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.
Activity
DanTup commentedon Sep 29, 2025
Related PRs:
.dart_tool/widget_preview_scaffoldduringflutter cleanflutter/flutter#175664 - Don't crash onflutter cleanThe 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.
DanTup commentedon Oct 21, 2025
This was done in dc30f6c for vNext and cherry-picked into stable v3.120.1 in 0559777.