Skip to content

Support multiple Flutter projects in the same Pub workspace for Widget Preview #5775

Closed

Description

@DanTup

See #5671 (comment)

Widget Preview does support a Pub workspace, but probably needs invoking at the root of the workspace and not within a single project.

We should support this like the CLI does, even though we don't support multiple unrelated projects.

@bkonyi the only concern I have here, is what if I open a subset of a Pub Workspace. For example if I open just pkg/analysis_server in the SDK (assuming it was Flutter) - would widget preview scan the entire SDK (Pub Workspace) for widget previews?

I wonder if we could restrict this to just the open folders (which perhaps could be done together with flutter/flutter#173550?)

(cc @GabrielRStabile)

Activity

  1. added this to the v3.124.0 milestone on Oct 30, 2025
  2. added
    is enhancementAn enhancement or improvement that should be listed in release notes but is not a bug fix.
    on Oct 30, 2025
  3. DanTup commented on Nov 4, 2025

    @DanTup
    MemberAuthor

    This is fixed - multiple projects that are part of the Pub Workspace work:

    workspace_preview.mp4

    (however unrelated projects we still only support one of - that's what #5671 is tracking)

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 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.

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions