showAlertDialog3 function

dynamic showAlertDialog3(
  1. BuildContext context
)

Implementation

showAlertDialog3(BuildContext context) {

  // set up the buttons
  Widget remindButton = TextButton(
    child: Text("Okay"),
    onPressed:  () {Navigator.of(context).pop();},
  );

  // set up the AlertDialog
  AlertDialog alert = AlertDialog(
    title: Text("Congrats"),
    content: Text("Service Mapping Added!"),
    actions: [
      remindButton,
    ],
  );

  // show the dialog
  showDialog(
    context: context,
    builder: (BuildContext context) {
      return alert;
    },
  );
}