standardHeaderText function
Widget
standardHeaderText({
- required dynamic text,
- EdgeInsets? margin,
- Color? color,
- double? fontSize,
- FontWeight? fontWeight,
- TextOverflow? textOverflow,
- int? maxLines,
- TextAlign? textAlign,
Implementation
Widget standardHeaderText({
required text,
EdgeInsets? margin,
Color? color,
double? fontSize,
FontWeight? fontWeight,
TextOverflow? textOverflow,
int? maxLines,
TextAlign? textAlign,
}) {
return Container(
margin: margin ?? EdgeInsets.zero,
child: Text(
text,
style: HeaderTextStyle.textStyle(
color: color,
fontWeight: fontWeight,
fontSize: fontSize),
overflow: textOverflow,
maxLines: maxLines,
textAlign: textAlign,
),
);
}