show method
Implementation
@override
void show(BuildContext context, String completerId, {dynamic data}) {
showDialog(
// barrierDismissible: false,
context: context,
builder: (context) => UpAlertDialog(
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']
.split('\n')
.map<Widget>(
(text) => Padding(
padding: const EdgeInsets.all(8),
child: UpText(text),
),
)
.toList(),
)),
actions: <Widget>[
SizedBox(
// width: 100,
child: UpButton(
text: "OK",
onPressed: () {
ServiceManager<UpDialogService>().completeDialog(
context: context,
completerId: completerId,
result: null,
);
},
),
)
],
));
}