Skip to content

Prompt to run "flutter pub get" if project references a different Flutter SDK to the one being used for analysis #3540

@maheshj01

Description

@maheshj01

Is your feature request related to a problem? Please describe.

vscode supports adding multiple paths to flutter sdk, which allows us to switch between multiple versions of flutter and it works pretty well. I have set it up this way as answered in this stackoverflow thread but the problem is when we switch the version and when I look at the definition of any class, I see that it still points to the old SDK's code. The changes only gets reflected when we call flutter pub get

Describe the solution you'd like
So the solution I think is when we change the path to sdk the plugin should also call flutter pub get so that it points to correct class definitions.

Additional context

Heres a small demo describing the issue.

Screen.Recording.2021-08-26.at.7.37.05.AM.mov

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions