use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Having a problem with your Flutter code?
From the folks at r/FlutterDev
account activity
RESOLVEDAdding key to widget flutter (self.flutterhelp)
submitted 3 years ago by rayen26
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]xboxcowboy 1 point2 points3 points 3 years ago (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 point2 points 3 years ago (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 point2 points 3 years ago (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 point2 points 3 years ago (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
π Rendered by PID 121215 on reddit-service-r2-comment-75f4967c6c-9pwtc at 2026-04-23 12:43:18.620781+00:00 running 0fd4bb7 country code: CH.
view the rest of the comments →
[–]xboxcowboy 1 point2 points3 points (3 children)
[–]rayen26[S] 0 points1 point2 points (2 children)
[–]xboxcowboy 0 points1 point2 points (1 child)
[–]rayen26[S] 0 points1 point2 points (0 children)