regularTextStyle method

TextStyle regularTextStyle(
  1. BuildContext context, {
  2. bool? bold = false,
  3. Color? color,
  4. double? height,
  5. TextDecoration? decoration,
})

Implementation

TextStyle regularTextStyle(BuildContext context,
    {bool? bold = false,
    Color? color,
    double? height,
    TextDecoration? decoration}) {
  return TextStyle(
    fontFamily: Theme.of(context).textTheme.bodyMedium!.fontFamily,
    color: color ?? Theme.of(context).textTheme.bodyMedium!.color,
    fontSize: regularText,
    fontWeight: bold! ? semiBoldWeight : regularWeight,
    height: height ?? textHeight,
    decoration: decoration ?? TextDecoration.none,
  );
}