Flutter 3 Auto - Suggestion / Completion Not Work

Viewed 261

after upgrading to flutter 3.0.0 / 3.0.1, suggestion or autocomplete code not work, can't call initState completion, or setState suggestion :

enter image description here

what i have tried to do to fix :

  • flutter upgrade
  • restart my computer
  • flutter clean
  • flutter pub get
  • flutter pub upgrade

and still not work.

here my flutter doctor enter image description here

dart sdk setting & flutter sdk setting : enter image description here enter image description here

flutter plugin & dart plugin : enter image description here

i did try to downgrade flutter to 2.10.5, and the auto-suggestion works without any problems. what's wrong with flutter 3? any steps needed to upgrade that I missed? please help me, thank you so much for your help

2 Answers

Try restarting the dart analysis server -

  • Navigate to Dart Analysis tab at bottom.
  • Click Restart Icon (red colored icon on top left corner of Dart Analysis Window)
  • Wait for dart analysis to finish.

After these close and restart the android studio.

Hope it helps.

It happens to me too and I solved it by pressing (Ctrl + O) to show Override methods and I think the next dart update will solve the problem.

Related