getTextStyle static method

TextStyle getTextStyle(
  1. Color? textColor,
  2. UFUFontWeight? fontWeight,
  3. UFUTextSize? textSize,
  4. double? dynamicFontSize,
  5. UFUFontFamily? fontFamily,
  6. TextOverflow? overflow,
  7. double? height,
  8. double? letterSpacing,
  9. TextDecoration? textDecoration,
  10. FontStyle? fontStyle,
  11. 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,
  );
}