I have two functions named getAllContacts() which will get all the contacts from mobile and upDateAllContacts() which creates widgets using contact numbers and append it to list named registerdUsers = [] and used the registedUser widget in column. The problem is widgets are no visible unless i navigate to another screen and come back.
List registeredUsers = <Widget>[]; class ...{ ... @override initState() { getAllContacts() //It greps all the contacts from mobile upDateAllContacts()//contacts to create widgets which goes in to registeredUsers list super.initState(); } @override Widget build(BuildContext context) { ... column { children :registeredUsers, } ... } }