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