how to reload current page (chat app) after call method that insert data in database
Anonymous
hi help please when i press button i want to reload current page (chat app) after call method that insert data in database () . i try to use this code (it reloal the page but without inserted data) :
onPressed: () {
insertData(_value, _text);
Navigator.push(
context,
MaterialPageRoute(
builder: (context) => ExScreen(ExScreen.id),
),
);
}