onclose of dialog reload screen flutter
Return true in pop Navigator from the dialog when want to refresh the screen
FlatButton(
onPressed: () => Navigator.of(context).pop(true),
child: Text("Close")),
...
...
)
Refresh screen when getting true in result
final result = await showDialog<bool>(
context: context,
builder: (context) => MyDialog(),
);
if (result) {
// refresh screen
setState(() {});
}