Skip to content

After upgrading Flutter, VSCode doesn't recognize valid code. #72510

@ad-on-is

Description

@ad-on-is

I'm experiencing some strange behaviors each time I upgrade Flutter, either from stable to stable, or stable to beta/dev or beta/dev to stable, etc...

VSCode doesn't recognize some valid arguments and shows them as errors.

Like here, on the BoxDecoration(). It shows that the parameter colors isn't defined.
image

When opening up the available parameters for this Widget, something other strange happens... it shows List:
image

I tried flutter clean in a terminal and Flutter: Clean Project in VSCode, but none of these help. The only thing that helps, is restarting VSCode.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions