Can it be possible to add custom wrap widget menu in Flutter? - 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.

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.

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

Related

Flutter Relocate Widget to Parent

In Flutter, what would be the best approach to relocate an entire Widget into a container in a parent.
I have an expanding accordion list. When an item is clicked on it expands to show more of its content. The Widget that contains this content also contains a new set of tools to place in the parent's bottom navigation. How do I get these tools there?
I'd also like to fade between the old tools and the new tools by supplying the same animation controller that opened this accordion to the bottom navigation.

how to customise the toolbar for a flutter SelectableRegion

When text in a SelectableRegion widget is selected, the toolbar generated by materialTextSelectionControls has options for 'Copy' and 'SelectAll'. What is the best way to disable 'SelectAll' and how can the styling (in particular, text color) of the options be changed?
So far, my answer to my question is to copy the relevant flutter files for the SelectableRegion widget and customise them to make a MySelectableRegion widget.
But surely there is a better way?
For anyone wanting to do the same as me, the files I copied and am editing are
flutter/packages/flutter/lib/src/widgets/selectable_region.dart
flutter/packages/flutter/lib/src/material/text_selection.dart
flutter/packages/flutter/lib/src/material/text_selection_toolbar.dart

How to edit flutter_clean_calendar package?

So i want to customize some widget in this package. I want to change selectedDay(the big red circle) size.
So i go to it's definition and try to change it. I just need to add some width as argument to Container, but i can't.
I also try to wraps widget by using the bell icon, but it doesn't work. I can't choose any widget, other than getX
I try to type, but no option shows up
My flutter plugins work just fine in other file. So is it mean that i can't edit or add any widget in lib file? How to edit this file?

Custom widget dropdown

If I do not click:
When I press the button in the red circle:
Hello, I want to ask. What widget can I use to get a design like this? When the red circle is pressed, another menu will appear and can be pressed to go to another menu. I tried using the dropdown button but it doesn't work as I want. I have also used ListTileTheme and ExpansionTile but it still doesn't work as I want. Anyone can share an opinion.
Flutter's core dropdown widget works almost exactly like your example, and there is a widget that extends it even further. You should then be able to nest further menus if that's what you need it to do. Flutter DropdownButton2

Using AlertDialog on a stack widget in flutter

I have a basic layout where I am using a stack widget to hold my other widgets.. I have a side toolbar, inside that I have a pen menu on click of which a popup should appear. When i am clicking the pen menu an alert dialog appears but not in the expected place, what i mean is...
I am expecting a dialog like the one in the below image. Do I need to use any plugin to create a dialog like this with a chevron mark?enter image description here
As you are using Alert dialog, it will by default be aligned in center of your screen. In order to achieve what you are trying to, I would suggest using a plugin like this.