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