skip to Main Content

After upgrading flutter with flutter upgrade to 3.10

All my (previously working) Futures stopped working. Every single future is underlined with red saying "Future isn’t a type".

What can I do to fix this? Clearly Future hasn’t been removed.

2

Answers


  1. Flutter clean
    Flutter pub get

    I think that will work for You

    Login or Signup to reply.
  2. This was happing to me too after upgrade to 3.10.

    I am using VS Code. After opening with Android Studio, I was able to build it without any problem.

    Going back to VS Code, and it starts to work again. 😃

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search