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