How to enable Flutter intentions (IDE shortcuts) in Android Studio

809

Solution 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

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

As suggested by Duong Quang Son

make sure you have checked
Editor -> Intentions -> Quick assist powered by the Dart Analysis Server.

Share:
809
mgalgs
Author by

mgalgs

Updated on December 22, 2022

Comments

  • mgalgs
    mgalgs about 8 hours

    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:

    Unfluttered intentions

    • Payam Asefi
      Payam Asefi over 2 years
      as I know it must be enabled by default. did you try this shortcut on other widgets as well? because I sometimes have this problem with one random widget
    • farouk osama
      farouk osama over 2 years
      Usually, you only have to close and reopen the project
    • mgalgs
      mgalgs over 2 years
      @faroukosama that was it! /facepalm