Hello,
I'm trying to make a list in which you can add items. For example I have a menu and in the menu is a button to add an item. This item is another button.
example:
Menu
<Add item button>
<item 1 button>
<item 2 button>
<item 3 button>
Now I want it to be that if you press the <add item button> it adds a button below. So in this case <item 4 button>, and if you then press it again it will add <item 5 button> and so on.
How can I achieve this with an infinite amount of buttons to add? (so by not making a state for each number of buttons)
Thanks a lot in advance!
Mitchel