CustomText constructor
const
CustomText({
- Key? key,
- required String text,
- double? size = 16,
- int? maxLine = 1,
- FontWeight? fontWeight = FontWeight.w400,
- Color? color = AppThemeData.greyMediumFontColor,
- double? wordSpacing,
- VoidCallback? onClick,
- TextAlign? textAlign = TextAlign.left,
- double? latterSpacing = 0,
Implementation
const CustomText(
{super.key,
required this.text,
this.size = 16,
this.maxLine = 1,
this.fontWeight = FontWeight.w400,
this.color = AppThemeData.greyMediumFontColor,
this.wordSpacing,
this.onClick,
this.textAlign = TextAlign.left,
this.latterSpacing = 0});