buildLabelText method
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,
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,
),
);
}