title3 method

Widget title3(
  1. BuildContext context,
  2. String? text, {
  3. int? maxLines,
  4. TextAlign? textAlign,
  5. Color? color,
  6. TextDecoration? textDecoration,
})

Implementation

Widget title3(BuildContext context, String? text,
    {int? maxLines,
    TextAlign? textAlign,
    Color? color,
    TextDecoration? textDecoration}) {
  return Text(
    text ?? '',
    textAlign: textAlign ?? TextAlign.start,
    maxLines: maxLines,
    overflow: maxLines != null ? TextOverflow.ellipsis : null,
    style: TextStyle(
        fontFamily: Theme.of(context).textTheme.bodyMedium!.fontFamily,
        color: color ?? Theme.of(context).textTheme.titleLarge!.color,
        fontSize: h3,
        height: textHeight,
        fontWeight: semiBoldWeight,
        decoration: textDecoration),
  );
}