I'm experiencing a problem with Android Studio and the Flutter framework.
The code completion suggestions Android Studio shows are now incoherent types when I develop mobile apps with Flutter, but, in Visual Studio Code code completion works fine. (And it used to work in Android Studio too, but i may have broken something without knowing it.)
Here is Android Studio ScreenShot
And here is the Visual Studio Code ScreenShot
As you can see, Visual Studio Code proposes all of the types that make sense for this specific attribute. But the Android Studio shows something else entirely -- I cannot even find those types there.
I have tried the following:
I am using the latest versions of Android Studio, Flutter and Dart. Any help will be appreciated.
Try updating your flutter plugin in Android Studio.
Settings>Editor>General>Code Completion> Set tick on "Show the documentation popup" and adjust how fast you want it to appear.
Try clearing .packages
.dart_tool
directory and pubspec.lock
and then restarting android studio. That worked for me.
I found this solution on github: https://github.com/flutter/flutter-intellij/issues/4229#issuecomment-567241643
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With