How to add and delete widget dynamically in flutter? - flutter

Here I added Stack widget in scaffold body. I added full screen image as background image and set edit text widget functionality on image.
I want to add Multiple Text Widget with delete and add widget functionality on button click in flutter. I mean when I Press on any particular Text widget it become enable and if I press on delete Icon, this particular selected widget delete on the stack widget.
How it could be possible in flutter? Any suggestion for it or I should use any other widget rather than Stack widget for this functionality.

Related

How can I drag a widget not directly but through slider widget in flutter

I want to add a dragging effect on a particular widget using slider.

I want to add a buttombar to my application Contains only text flutter

I want to add a buttombar to my application Contains only just one text with background color .
I need it to write the copyright in my application, but I find just that I have to add At least a two-item
In the list,
I don't need this
Just i want to add a single one text with a background color
In your case you do not need a bottombar widget.
you can create a container with specific height and background color and center a text widget in the container.
If you are looking to add bottomNavigationBar with one item only you can just write your own widget in the bottom navigation bar like a Container and set a background of your choice and give it a child widget wrapped in an INKWELL or GESTUREDETECTOR and if it overlaps with the Phone's GUI you can wrap the inkwell with SAFEAREA widget

How to change FAB icon within a StatelessWidget

I started with the default Statfull Widget HomePage and a FAB.
The main widget in the page is a ListBuilder that is updated from a stream using Provider.
When an item on the list is clicked, I need to change the icon on the FAB.
All this works fine.
Now I wonder, If I would like to change the home page as a StatelessWidget. So I don't need to build the entire page just to change the icon on the FAB.
How can I update the Icon if I don't have setState() to rebuild the page?
the best answer should be use some sort of state management, but here's a quick and easy way to achieve your goal
create a function in your parent widget
Function callback(){
setState((){
//change Icon
});
}
Then pass it on to your stateless widget
CustomFabWidget(callback)

How to open second container in Flutter when I click on IconButton?

I added Row widget with rendering on stack widget. I actually want to add more container, but it shows when I click on IconButton. After clicking it does not shows on screen. So how is possible in Flutter ?
Any suggestion?
you could create a stack widget and when the IconButton is pressed you call a function to display the new container( which probably is inside the stack widget you are going to implement)

Flutter : Show properties Widget without Hover the widget

I'm now it's very basic question but i want know it's possible show property widget without hover the widget or it have button combination ?
It's same like if i want add new widget , i only click the widget and press Ctrl + .
Thank's