How to update the Homepage just after the showDialog() is dismissed/disposed? Doesn\'t seem like it has an onDispose() function.
showDialog()
onDispose()
Found another
Simply use await and then, the code in "then" block will run after the dialog is dismissed
await showDialog( //Your Dialog Code ).then((val){ Navigator.pop(_context); });