buildLabelText method

Widget buildLabelText(
  1. BuildContext context, {
  2. FastButtonEmphasis emphasis = FastButtonEmphasis.low,
  3. bool upperCase = true,
  4. bool isEnabled = true,
  5. TextStyle? textStyle,
  6. Color? disabledColor,
  7. FastButtonSize? size,
  8. String? labelText,
  9. Color? color,
  10. Widget? icon,
})

Implementation

Widget buildLabelText(
  BuildContext context, {
  FastButtonEmphasis emphasis = FastButtonEmphasis.low,
  bool upperCase = true,
  bool isEnabled = true,
  TextStyle? textStyle,
  Color? disabledColor,
  FastButtonSize? size,
  String? labelText,
  Color? color,
  Widget? icon,
}) {
  return FastButtonLabel(
    text: labelText ?? CoreLocaleKeys.core_label_button.tr(),
    fontWeight: textStyle?.fontWeight,
    upperCase: upperCase,
    textColor: getColor(
      context,
      color: textStyle?.color ?? color,
      disabledColor: disabledColor,
      isEnabled: isEnabled,
      emphasis: emphasis,
      icon: icon,
    ),
    fontSize: getFontSize(
      context,
      textStyle: textStyle,
      size: size,
    ),
  );
}