getFontStyle method

TextStyle getFontStyle({
  1. required double fontSize,
  2. FontWeight? fontWeight,
  3. Color? color,
  4. FontStyle? fontStyle,
  5. double? letterSpacing = 0,
  6. double? wordSpacing,
  7. double? height,
  8. String? fontFamily = "Poppins",
  9. TextDecoration? decoration,
  10. Color? decorationColor,
})

Implementation

TextStyle getFontStyle({
  required double fontSize,
  FontWeight? fontWeight,
  Color? color,
  FontStyle? fontStyle,
  double? letterSpacing = 0,
  double? wordSpacing,
  double? height,
  String? fontFamily = "Poppins",
  TextDecoration? decoration,
  Color? decorationColor,
}) {
  return GoogleFonts.manrope(
    fontSize: fontSize,
    fontWeight: fontWeight ?? FontWeight.w400,
    color: color,
    fontStyle: fontStyle,
    letterSpacing: letterSpacing,
    height: height,
    decoration: decoration,
    wordSpacing: wordSpacing,
    decorationColor: decorationColor,
  );
}