Question: How to update the Homepage just after the `showDialog()` is dismissed/disposed? Doesn't seem like it has an `onDispose()` function.

Found another possible Answer : The `WillPopScope` can help detect if the back button is pressed.

The widget that will be used in the `showDialog`, in its build function the widget can be wrapped in `return new WillPopScope(child: ______, onWillPop: _______);` The code can be run in the `onWillPop` function. This can update the Homepage below.

Answer: 
Mobile apps typically reveal their contents via full-screen elements called "screens" or "pages". In Flutter these elements are called routes and they're managed by a **Navigator** widget. The navigator manages a stack of Route objects and provides methods for managing the stack, like `Navigator.push` and `Navigator.pop`.

```
showDialog(
            context: context,
            child: new AlertDialog(
                title: const Text("Your Title"),
                content: const Text(
                  ...
                   Your Message
                  ...),
                actions: [
                new FlatButton(
                  child: const Text("Ok"),
                  onPressed: () => Navigator.pop(context),
                ),
              ],
            ),
        );

```

You can check [Official Document](https://docs.flutter.io/flutter/widgets/Navigator-class.html)
Use;
`.whenComplete(funcName/*not funcName() !*/);`
after the `showDialog()`

```
funcName() {
//Your code
}

```