Commit bb0830d4 by Rizal Hermawan

feat (lls_alert): add titleStyle and subtitleStyle to LLSAlert (show method). Story #1

parent 345e594d
......@@ -262,7 +262,9 @@ abstract class LLSAlert {
Color? confirmButtonColor,
String? cancelButtonText,
String? confirmButtonText,
LLSAlertStyle style: LLSAlertStyle.success}) {
LLSAlertStyle style: LLSAlertStyle.success,
TextStyle? titleStyle,
TextStyle? subtitleStyle}) {
LLSAlertOptions options = LLSAlertOptions(
showCancelButton: showCancelButton,
title: title,
......@@ -272,7 +274,9 @@ abstract class LLSAlert {
confirmButtonColor: confirmButtonColor,
confirmButtonText: confirmButtonText,
cancelButtonText: cancelButtonText,
cancelButtonColor: confirmButtonColor);
cancelButtonColor: confirmButtonColor,
titleStyle: titleStyle!,
subtitleStyle: subtitleStyle!);
if (_state != null){
_state!.update(options);
} else {
......
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