<div>MySimpleDialog wouldn't pop so I change my pop line from:</div>
Navigator.pop();
to:
Navigator.of(context, rootNavigator: true).pop();
Now it all works perfectly.
Written by Brad Evans
Need a reliable senior engineer in your corner?
I have 20+ years of experience building production software, leading engineering teams, and shipping mobile & web apps. No middle-men—just direct, pragmatic engineering.