Home > Mobile >  How to update list view without refreshing in Flutter
How to update list view without refreshing in Flutter

Time:10-12

How can it update a list view elements without doing pull-to-refresh If I'm adding an element in a dialog window or from an Api, how to add/update the list view elements automatically.

Should I use StreamBuilder?

CodePudding user response:

Yes you can use stream builder and you can also use setstate

setState(() { });

CodePudding user response:

Use state management pub like Getx, or something with adlistener.

  • Related