show method
Implementation
@override
void show(BuildContext context, String completerId, {dynamic data}) {
showDialog(
context: context,
builder: (context) => UpAlertDialog(
title: UpText(data['title']),
content: UpText(data['text'] ?? "Error"),
actions: <Widget>[
SizedBox(
// width: 100,
child: UpButton(
text: "OK",
onPressed: () {
ServiceManager<UpDialogService>().completeDialog(
context: context,
completerId: completerId,
result: {'success': true},
);
},
),
)
],
));
// Alert(
// context: context,
// title: "FilledStacks",
// desc: "My tutorials show realworld structures.",
// closeFunction: () => _dialogService.dialogComplete(),
// buttons: [
// DialogButton(
// child: Icon(Icons.add),
// onPressed: () {
// _dialogService.dialogComplete();
// Navigator.of(context).pop();
// },
// )
// ]).show();
}