Remove dynamically a widget from a dynamically created list flutter
问题 I followed this example to remove a desired element from a list, and it worked fine. I then made some changes as the size of my list is not predefined (aka 5 in the example), but changes through a button. After adapting the code to my needs, I observed two problems: The elements hash codes changes everytime I hit + to add a new element. Is this correct as it's redrawing the list, or is incorrect? When deleting an element, besides changing the hash codes of all the other elements, only the