-
Notifications
You must be signed in to change notification settings - Fork 29.8k
Open
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work lista: widget previewsIssues related to the Widget Previewer toolingIssues related to the Widget Previewer toolingteam-toolOwned by Flutter Tool teamOwned by Flutter Tool teamtoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.triaged-toolTriaged by Flutter Tool teamTriaged by Flutter Tool team
Description
Currently it seems like the preview expects to be invoked for a single project only. But inside IDEs, there might be multiple Flutter projects open.
It would be nice if there was a way to spawn the server once without being tied to a specific project, and then have the preview work based on the project of the active file (eg. if you switch between files in two different Flutter projects, the preview would reload between them).
We could handle this in the IDE by spawning a server-per-project and just changing the URL for the iframe, but it would either mean starting the servers lazily (and shutting them down) which makes them slower, or using more memory to keep multiple servers alive.
cc @bkonyi
FrantisekGazo and JaffaKetchup
Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work lista: widget previewsIssues related to the Widget Previewer toolingIssues related to the Widget Previewer toolingteam-toolOwned by Flutter Tool teamOwned by Flutter Tool teamtoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.triaged-toolTriaged by Flutter Tool teamTriaged by Flutter Tool team