regularTextStyle method
TextStyle
regularTextStyle(
- BuildContext context, {
- bool? bold = false,
- Color? color,
- double? height,
- TextDecoration? decoration,
- Color? decorationColor,
Implementation
TextStyle regularTextStyle(BuildContext context,
{bool? bold = false,
Color? color,
double? height,
TextDecoration? decoration,
Color? decorationColor,}) {
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,
decorationColor: decorationColor,
);
}