title method
Widget
title(
- BuildContext context, {
- double fontSize = CustomFontSize.f22,
- Color? color,
- int? maxLines,
- double? letterSpacing,
- FontWeight? fontWeight,
Implementation
Widget title(
BuildContext context, {
double fontSize = CustomFontSize.f22,
Color? color,
int? maxLines,
double? letterSpacing,
FontWeight? fontWeight,
}) {
return AutoSizeText(
this,
maxLines: maxLines,
style: Theme.of(context).textTheme.headline5!.copyWith(
fontSize: fontSize,
color: color,
letterSpacing: letterSpacing,
fontWeight: fontWeight,
),
);
}