headline1 method

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

Implementation

Widget headline1(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.displayLarge!.copyWith(
          color: color ?? Theme.of(context).textTheme.displayLarge!.color,
        ),
  );
}