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();
});
}