smallTextStyle method

TextStyle smallTextStyle(
  1. BuildContext context, {
  2. bool? bold = false,
  3. Color? color,
  4. double? height,
  5. 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);
}