title1 method

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

Implementation

Widget title1(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: h1,
        height: textHeight,
        fontWeight: boldWeight,
        decoration: textDecoration),
  );
}