dibaloke
12/31/2018 - 12:27 AM

Alert box created with mannual builder function

void bookFlight(BuildContext context) {
    var alertDialog=AlertDialog(
      title: Text("Flight Booked Succesful"),
      content: Text("Have a pleasent flight"),
    );
    showDialog(
      context: context,
      builder:(BuildContext context){
             return alertDialog;
      }
    );
  }