buttonText static method

TextStyle buttonText({
  1. Color color = Colors.white,
  2. KRButtonSize fontSize = KRButtonSize.regular,
  3. bool isBold = false,
})

Implementation

static TextStyle buttonText(
    {Color color = Colors.white,
    KRButtonSize fontSize = KRButtonSize.regular,
    bool isBold = false}) {
  return TextStyle(
      color: color,
      fontSize: fontSize.fontSize,
      fontWeight: isBold ? FontWeight.bold : FontWeight.normal);
}