'How to enable Flutter intentions (IDE shortcuts) in Android Studio
I've been reading about IDE shortcuts to make Flutter programming easier in Android Studio, but when I hit Alt-Enter (or click the yellow light bulb in the fringe) the only item in my context menu is "Adjust code style settings" (no "Add padding", "Wrap with Container", "Remove widget", etc.).
From what I can tell these are called "Intentions" in Android Studio. In my intentions settings I don't see anything for "Flutter". How do I get those added?
Screenshots:
Solution 1:[1]
GAH! As suggested by @faroukosama
in the comments, all I needed to do was close and reopen the project...
Have you tried unplugging it and plugging it back in?
Solution 2:[2]
I had the same issue. Could you try this way:
- Use the terminal: flutter clean -> flutter upgrade -> ( my version upgraded )
- I think you should remove flutter and download again Hope it works for you!!
Solution 3:[3]
As suggested by Duong Quang Son
make sure you have checked
Editor -> Intentions -> Quick assist powered by the Dart Analysis Server.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | mgalgs |
Solution 2 | H369 |
Solution 3 | MadMurdok |