headline3 method

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

Implementation

Widget headline3(BuildContext context, String? text,
    {int? maxLines, TextAlign? textAlign, Color? color}) {
  return Text(
    text ?? '',
    textAlign: textAlign ?? TextAlign.start,
    maxLines: maxLines,
    overflow: maxLines != null ? TextOverflow.ellipsis : null,
    style: Theme.of(context).textTheme.displaySmall!.copyWith(
          color: color ?? Theme.of(context).textTheme.displaySmall!.color,
        ),
  );
}