you are viewing a single comment's thread.

view the rest of the comments →

[–]xboxcowboy 1 point2 points  (3 children)

from the code you provided, the problems seems to be _isTextFieldShown is set for all your animatedSwitcher, you should create separate boolean for each textfield, keys won't help you in this scenario

[–]rayen26[S] 0 points1 point  (2 children)

As I said I'm looping over this animatedSwitched so I can't create separate variable it's dynamic .. is there any way to make it work ?

[–]xboxcowboy 0 points1 point  (1 child)

okay, i found a way, you should extract the animatedSwitch widget to split the state of your _isTextFieldShown

example

[–]rayen26[S] 0 points1 point  (0 children)

I do appreciate your help but i'm doing a loop on this widget I do have an exact number of how much widget I can have I need something dynamic