description method
Widget
description(
- BuildContext context, {
- double fontSize = CustomFontSize.f18,
- TextAlign? textAlign,
- int? maxLines,
- Color? color,
- TextDecoration? decoration,
- double? letterSpacing,
- FontWeight? fontWeight,
Implementation
Widget description(BuildContext context,
{double fontSize = CustomFontSize.f18,
TextAlign? textAlign,
int? maxLines,
Color? color,
TextDecoration? decoration,
double? letterSpacing,
FontWeight? fontWeight}) =>
AutoSizeText(
this,
textAlign: textAlign,
maxLines: maxLines,
style: Theme.of(context).textTheme.headline4!.copyWith(
fontSize: fontSize,
decoration: decoration,
color: color ?? Theme.of(context).textTheme.headline5!.color,
letterSpacing: letterSpacing,
fontWeight: fontWeight),
);