I am currently working on an app that has a ListView
containing multiple TextFields
. Initially, I encountered some issues when directly placing TextFields
inside the ListView
. The problems included improper rendering and performance issues. After researching a bit, I learned that it’s a common problem due to how the ListView
manages its child widgets (such as re-building and re-rendering during scrolling), and FlutterFlow suggested wrapping the TextField
inside a custom component before adding it to the ListView
. This approach solved the rendering issues.
However, I now need to modify the values of all the TextFields
through an action. I am unsure how to achieve this since the TextFields
are now within a component and I cannot seem to access or update their values directly from the parent widget or through actions.
Below I am providing the screenshot of the page I am talking about for your reference
Could someone guide me on how to properly update or set the values of these TextFields
within the ListView
?
Thanks in advance for your help!