Flutter has released version 1.0 long time ago, but it always would introduce new or unsolved issues. Put all issues together to help search in later.

Cannot find declaration to go

When this issue happened, all IDE(Android Studio, Visual Studio Code) was unable to jump and highlight, even Invalidate Cache and Restart, Reopen the project, Restart laptop would not help, but the weird thing is you can still compile and run. It’s really annoyed!

Solutions:

  1. flutter channel dev(Not current flutter branch)
  2. flutter pub get
  3. flutter channel stable (check out back branch)
  4. flutter pub get
  5. flutter clean
  6. flutter run …