Radem
Radem

Reputation: 29

Can it be possible to add custom wrap widget menu in Flutter?

On VScode, Flutter project selected widget tag and with "Ctrl + ." shortcut occur opening menu that includes such as "wrap this with Container". I wonder this is possible. These menu options enrich with new items such as wrap this with Stack etc.

Upvotes: 2

Views: 1280

Answers (2)

Jannie Theunissen
Jannie Theunissen

Reputation: 30104

Not possible.

This feature was requested for VS Code, but looks like it was closed after a generic "Wrap with Builder" assist was added.

Upvotes: 0

ng5002
ng5002

Reputation: 493

The options on that menu are part of the flutter vscode extension. You can't take away or add items to that menu, but if you want to do something like wrap a widget in a stack, you can wrap the widget in a column or row, then change Column or Row to Stack.

Upvotes: 1

Related Questions