Future<void> _asyncConfirmDialog(BuildContext context) async {
return showDialog<void>(
context: context,
builder: (context) {
return AlertDialog(
title: Text('Confirm Title'),
content: Text('bora hihi'),
actions: <Widget>[
FlatButton(
child: Text('CANCEL'),
onPressed: () {},
),
FlatButton(
child: Text('ACCEPT'),
onPressed: () {},
)
],
);
},
);
}