Commit f3865a83 by Rizal Hermawan

feat (lls_alert): add titleStyle and subtitleStyle to LLSAlertOptions. Story #1

parent 0cf8ad5c
......@@ -150,9 +150,11 @@ class _LLSAlertDialogState extends State<LLSAlertDialog> with SingleTickerProvid
if (_options!.title != null) {
listOfChildren.add(Padding(
padding: EdgeInsets.only(top: 24.0),
child: Text(
_options!.title!,
style: _options!.titleStyle,
child: Center(
child: Text(
_options!.title!,
style: _options!.titleStyle,
),
),
));
}
......@@ -231,8 +233,7 @@ class _LLSAlertDialogState extends State<LLSAlertDialog> with SingleTickerProvid
child: Padding(
padding: EdgeInsets.fromLTRB(0.0, 20.0, 0.0, 20.0),
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.center,
mainAxisSize: MainAxisSize.min,
children: listOfChildren,
),
)),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment