customTextCrossStyle static method

TextStyle customTextCrossStyle({
  1. Color? color = ThemeColors.textColor,
  2. String? fontName,
  3. double? textSize,
  4. FontWeight? fontWeight,
})

Implementation

static TextStyle customTextCrossStyle({Color? color = ThemeColors.textColor, String? fontName, double? textSize, FontWeight? fontWeight}) {
  return GoogleFonts.getFont(fontName ?? prefsHelper.getFontName(),
      color: color,
      fontWeight: fontWeight ?? FontWeight.bold,
      fontSize: textSize ?? Sizes.textSizeDefault,
      fontStyle: FontStyle.normal,
      textStyle: TextStyle(fontSize: textSize, color: color, fontWeight: fontWeight ?? FontWeight.bold, decoration: TextDecoration.lineThrough));
}