skip to Main Content

Whenever I try to use the "wrap with" option on a widget (Alt + Enter on windows / Option + Enter on macOS), I’m getting a limited list of available wrap widgets that I can use (all of them related to the flutter_bloc package).

enter image description here

I’m looking to get the full default flutter list like this:

enter image description here

What should I do?

2

Answers


  1. Chosen as BEST ANSWER

    Problem Solved!

    All I had to do is to:

    1. Go to Preferences -> Editor -> Intentions
    2. Then search for "Dart"
    3. Enable the "Quick assists powered by Dart Analysis"

    IDK why it went down. But raising this again solved my issue.


  2. I tried following the other answer but I already had that flag checked; also, I didn’t find Preferences, I had to go to Settings -> Editor -> Intentions.

    I am very new to flutter so it may be obvious for some but I resolved by removing the const keyword.

    Before:

    enter image description here

    After:

    enter image description here

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search