getTextStyle static method
TextStyle
getTextStyle(
- Color? textColor,
- UFUFontWeight? fontWeight,
- UFUTextSize? textSize,
- double? dynamicFontSize,
- UFUFontFamily? fontFamily,
- TextOverflow? overflow,
- double? height,
- double? letterSpacing,
- TextDecoration? textDecoration,
- FontStyle? fontStyle,
- Color? decorationColor,
Implementation
static TextStyle getTextStyle(
Color? textColor,
UFUFontWeight? fontWeight,
UFUTextSize? textSize,
double? dynamicFontSize,
UFUFontFamily? fontFamily,
TextOverflow? overflow,
double? height,
double? letterSpacing,
TextDecoration? textDecoration,
FontStyle? fontStyle,
Color? decorationColor,
) {
return TextStyle(
color: textColor ?? AppTheme.themeColors.text,
fontSize:
dynamicFontSize ?? getTextSize(textSize ?? UFUTextSize.heading4),
fontFamily: UFUtils
.fontFamily, // TODO - getFontFamily(fontFamily ?? UFUFontFamily.productSans, fontWeight ?? UFUFontWeight.regular),
// package: 'UFU_mobile_flutter_ui',
overflow: overflow,
fontWeight: getFontWeight(fontWeight ?? UFUFontWeight.regular),
height: height,
decoration: textDecoration,
decorationColor: decorationColor,
letterSpacing: letterSpacing,
fontStyle: fontStyle ?? FontStyle.normal,
);
}