getTextStyle method
getTextStyle() a method which returns the textStyle.
For more info about textStyle take a look on textStyle
Implementation
@override
TextStyle getTextStyle() {
if (style!.buttonType == AuthButtonType.secondary)
return style!.textStyle ??
const TextStyle(
color: Colors.white,
fontSize: 18,
fontWeight: FontWeight.bold,
letterSpacing: 0.50,
);
return style!.textStyle ??
TextStyle(
color: darkMode ? Colors.white : Colors.black,
fontSize: 18,
fontWeight: FontWeight.bold,
letterSpacing: 0.50,
);
}