smallTextStyle method
TextStyle
smallTextStyle(
- BuildContext context, {
- bool? bold = false,
- Color? color,
- double? height,
- TextDecoration? decoration,
Implementation
TextStyle smallTextStyle(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.bodySmall!.color!,
fontSize: smallText,
fontWeight: bold! ? semiBoldWeight : regularWeight,
decoration: decoration ?? TextDecoration.none,
height: height ?? textHeight);
}