Flutter:TextEditingController not updating ListView with API data
I’m working on a Flutter application where I need to fetch and display a list of movies based on user input in a search field. The TextEditingController
should trigger an API call to fetch movie data and update the ListView
with the results. However, the list remains empty even after the API call is made.
Cursor always go back to position 0 in one of my controllers from a ListView.Builder
I hope you can help me, i’ve been doing everything but nothing works for me, I have a ListView Builder widget, that lets me add any items I want, each item has 3 fields, one of them is giving me trouble, everytime i type something in hoursController, the cursor goes to the position 0, so is uncomfortable to type, as it should be a numeric value. Here I add part of my code: