I have the following AlertDialog.
AlertDialog
showDialog( context: context, child: new AlertDialog( title: const Text(\"Lo
This answer works if you want to pop the dialog and navigate to another view. This part 'current_user_location' is the string the router need to know which view to navigate to.
current_user_location
FlatButton( child: Text('NO'), onPressed: () { Navigator.popAndPushNamed(context, 'current_user_location'); }, ),