show method
Implementation
@override
void show(BuildContext context, String completerId, {dynamic data}) {
showDialog(
context: context,
builder: (context) => UpAlertDialog(
title: UpText(data['title']),
content: Padding(
padding: const EdgeInsets.only(
left: 8.0, top: 15.0, bottom: 15.0, right: 8.0),
child: UpText(
data['text'] ?? "Error",
style: UpStyle(
textSize: 16,
),
),
),
actions: <Widget>[
SizedBox(
// width: 100,
child: UpButton(
text: "OK",
onPressed: () {
ServiceManager<UpDialogService>().completeDialog(
context: context,
completerId: completerId,
result: {'success': true},
);
},
),
)
],
));
}