Skip to content

Conversation

bkonyi
Copy link
Contributor

@bkonyi bkonyi commented Aug 26, 2025

This change allows for the widget previewer to react to activeLocationChanged events sent over the Editor DTD service to automatically filter the set of visible previews based on the currently selected file in the IDE. This functionality can be turned on or off depending on whether or not the developer wants to see all previews in the project at once.

This change also includes some minor refactoring and UI changes to move the widget preview environment controls to a reserved area at the bottom of the preview window.

Demo:

Screen.Recording.2025-08-26.at.4.40.22.PM.mov

…s from the currently focused script

This change allows for the widget previewer to react to
`activeLocationChanged` events sent over the `Editor` DTD service to
automatically filter the set of visible previews based on the currently
selected file in the IDE. This functionality can be turned on or off
depending on whether or not the developer wants to see all previews in
the project at once.

This change also includes some minor refactoring and UI changes to move
the widget preview environment controls to a reserved area at the bottom
of the preview window.
@github-actions github-actions bot added the tool Affects the "flutter" command-line tool. See also t: labels. label Aug 26, 2025
@bkonyi bkonyi requested a review from matanlurey August 26, 2025 21:17
@bkonyi bkonyi marked this pull request as ready for review August 26, 2025 21:17
@bkonyi bkonyi changed the title [ Widget Preview ] Response to IDE navigation events and show previews from the currently focused script [ Widget Preview ] Respond to IDE navigation events and show previews from the currently focused script Aug 29, 2025
Copy link
Contributor

@LongCatIsLooong LongCatIsLooong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with nits.

@justinmc
Copy link
Contributor

Thanks for reviewing @LongCatIsLooong

@bkonyi
Copy link
Contributor Author

bkonyi commented Sep 2, 2025

Thanks so much for the review!

@bkonyi bkonyi added the autosubmit Merge PR when tree becomes green via auto submit App label Sep 2, 2025
@auto-submit auto-submit bot added this pull request to the merge queue Sep 2, 2025
Merged via the queue into master with commit 1d19f97 Sep 2, 2025
154 checks passed
@auto-submit auto-submit bot deleted the widget_previews_selected_script_responsive branch September 2, 2025 17:28
@flutter-dashboard flutter-dashboard bot removed the autosubmit Merge PR when tree becomes green via auto submit App label Sep 2, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Sep 2, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Sep 2, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Sep 2, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Sep 2, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Sep 3, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Sep 3, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Sep 3, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Sep 4, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Sep 4, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Sep 4, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Sep 4, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Sep 5, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Sep 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tool Affects the "flutter" command-line tool. See also t: labels.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants