onPressed: () {
var alertDialog = AlertDialog(
title: Text("Flight Booked Succesful"),
content: Text("Have a pleasent flight"),
);
showDialog(
context: context,
barrierDismissible: true,
builder: (BuildContext context) {
return Dialog(
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(10.0),
),
child: Container(
height: 350.0,
width: 200.0,
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(100.0),
),
child: Column(
children: <Widget>[
Stack(
children: <Widget>[
Container(
height: 150.0,
),
Container(
height: 100.0,
decoration: BoxDecoration(
borderRadius: BorderRadius.only(
topLeft: Radius.circular(10.0),
topRight: Radius.circular(10.0),
),
color: Colors.teal,
),
),
Positioned(
top: 50.0,
left: 94.0,
child: Container(
height: 90.0,
width: 90.0,
decoration: BoxDecoration(
borderRadius:
BorderRadius.circular(45.0),
border: Border.all(
color: Colors.white,
style: BorderStyle.solid,
width: 2.0),
image: DecorationImage(
image: NetworkImage(
'https://upload.wikimedia.org/wikipedia/commons/3/36/Hopetoun_falls.jpg'),
fit: BoxFit.cover)),
),
)
],
),
SizedBox(height: 20.0),
Padding(
padding: EdgeInsets.all(10.0),
child: Text(
"Fountain",
style: TextStyle(
fontSize: 14.0,
fontWeight: FontWeight.w300,
),
),
),
SizedBox(
height: 15.0,
),
FlatButton(
child: Center(
child: Text(
"Okay",
style: TextStyle(
fontSize: 14.0, color: Colors.teal),
),
),
onPressed: () {
Navigator.of(context).pop();
},
),
],
),
));
});