Commit f3865a83 by Rizal Hermawan

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

parent 0cf8ad5c
...@@ -150,10 +150,12 @@ class _LLSAlertDialogState extends State<LLSAlertDialog> with SingleTickerProvid ...@@ -150,10 +150,12 @@ class _LLSAlertDialogState extends State<LLSAlertDialog> with SingleTickerProvid
if (_options!.title != null) { if (_options!.title != null) {
listOfChildren.add(Padding( listOfChildren.add(Padding(
padding: EdgeInsets.only(top: 24.0), padding: EdgeInsets.only(top: 24.0),
child: Center(
child: Text( child: Text(
_options!.title!, _options!.title!,
style: _options!.titleStyle, style: _options!.titleStyle,
), ),
),
)); ));
} }
...@@ -231,8 +233,7 @@ class _LLSAlertDialogState extends State<LLSAlertDialog> with SingleTickerProvid ...@@ -231,8 +233,7 @@ class _LLSAlertDialogState extends State<LLSAlertDialog> with SingleTickerProvid
child: Padding( child: Padding(
padding: EdgeInsets.fromLTRB(0.0, 20.0, 0.0, 20.0), padding: EdgeInsets.fromLTRB(0.0, 20.0, 0.0, 20.0),
child: Column( child: Column(
mainAxisAlignment: MainAxisAlignment.center, mainAxisSize: MainAxisSize.min,
crossAxisAlignment: CrossAxisAlignment.center,
children: listOfChildren, 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