Skip to content

Inspector infers correct pub root directory for widget previews - #8808

Merged
elliette merged 1 commit into
flutter:masterfrom
elliette:issue-8807
Feb 10, 2025
Merged

elliette merged 1 commit into
flutter:masterfrom
elliette:issue-8807

Conversation

@elliette

Copy link
Copy Markdown
Member

Fixes #8807

I'm assuming we never want to set a directory in .dart_tool as a pub root directory, but in case we do we can change the logic to specifically only exclude the widget_previews_scaffold directory.

@elliette
elliette requested a review from a team as a code owner January 24, 2025 23:28
@elliette
elliette requested review from bkonyi and kenzieschmoll and removed request for a team January 24, 2025 23:28
@elliette elliette changed the title Inspector infers correct pub root directory of widget previews Inspector infers correct pub root directory for widget previews Jan 24, 2025

@bkonyi bkonyi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Would build not be a better directory to look for if we have a running application?

Also, I'm not sure what the difference between the 'lib' / 'web' case and 'packages', but I assume there's a reason since that's just a refactor... :)

Overall, LGTM.

@elliette

Copy link
Copy Markdown
Member Author

Would build not be a better directory to look for if we have a running application?

Also, I'm not sure what the difference between the 'lib' / 'web' case and 'packages', but I assume there's a reason since that's just a refactor... :)

Overall, LGTM.

Possibly! But I don't want to change the existing logic (which currently works) unless there's a need to

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Widget Previews] Widget inspector hides widgets from user's local project in implementation widgets

2 participants