show method
Implementation
@override
void show(BuildContext context, String completerId, {dynamic data}) {
showDialog(
// barrierDismissible: false,
context: context,
builder: (context) => AlertDialog(
title: _getHeader(data['title']),
content: Padding(
padding: const EdgeInsets.fromLTRB(0, 16, 0, 0),
child: Column(
mainAxisSize: MainAxisSize.min,
crossAxisAlignment: CrossAxisAlignment.center,
children: data['text'] //Constants.ABOUT_TEXT
.split('\n')
.map<Widget>((text) => Padding(
padding: const EdgeInsets.all(8),
child: Text(text)))
.toList(),
)),
actions: <Widget>[
ElevatedButton(
child: const Text("OK"),
onPressed: () {
// Navigator.of(context).pop();
ServiceManager<UpDialogService>().completeDialog(
context: context,
// pop: false,
completerId: completerId,
result: null);
},
)
],
));
// 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();
}