I need to open the dialog when the app is terminated. I do an checking the life cycle of the app with the help of the WidgetsBindingObserver
@ove