Reputation: 29
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
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
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