0

I am making a flutter app, which counts down to events. What I would need is a way to refresh a ListView's subtitle every second. I am storing all of the events in a list, and I have a function, which takes an index as an argument and returns the time remaining to the event at the given index. This function is written in the subtitle of the ListView, and I'd like to update it every second. Any help is appreciated.

dave
  • 3
  • 1

1 Answers1

0

You can use StatefulBuilder + DateTime to update it

 StatefulBuilder(
    builder: (BuildContext context, setState){
  }
 );
Islomkhuja Akhrarov
  • 1,277
  • 9
  • 19