I am working on an app in which I have to generate PDF based on user input. but there are more than 60 inputs I need to take from user.
So how can i deal with this ?
A common approach I know is to create TextEditingController
for each fields and pass all 60+ field's data in function body to generate PDF, but I have never used 60+ controllers in a single screen so I am confused how to deal with it.
please let me know better way to do this.
If you want to access values within TextFields you have 2 options (afaik):
TextEditingController
onChange
property of the TextField WidgetI would personally go with one map having the field title as a key but this is up to you !