Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR DART

how to refresh a listview in flutter

 // There has to be a setState() that is called, whenever you want to 
 // rebuild anything (your listView in this example).
 @override
  void didChangeDependencies() {
    super.didChangeDependencies();
    setState(() {
      updateListView();
    });
  }
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #refresh #listview #flutter
ADD COMMENT
Topic
Name
6+3 =