I have a widget with an icon when I click on it an alert is shown, here I call for the dialog :
// this icon is in widget parent IconButton(