fontElMessiri function

TextStyle fontElMessiri({
  1. double? size,
  2. Color? textColor,
  3. FontWeight? fontWeight,
})

Returns a TextStyle using the El Messiri font.

Parameters:

  • size: Font size.
  • textColor: Color of the text.
  • fontWeight: FontWeight of the text.

Implementation

TextStyle fontElMessiri({
  double? size,
  Color? textColor,
  FontWeight? fontWeight,
}) {
  return GoogleFonts.elMessiri(
    fontWeight: fontWeight ?? FontWeight.normal,
    fontSize: size ?? 16,
    color: textColor ?? AppColors.blackDark,
  );
}