wrappingText static method
Widget
wrappingText(
- String text, {
- double size = defaultTextSize,
- Color? color,
- TextAlign textAlign = TextAlign.left,
- FontWeight fontWeight = FontWeight.normal,
Implementation
static Widget wrappingText(String text,
{double size = defaultTextSize,
Color? color,
TextAlign textAlign = TextAlign.left,
FontWeight fontWeight = FontWeight.normal}) =>
Flexible(
child: Text(
text,
textAlign: textAlign,
style: TextStyle(
fontFamily: defaultFontFamily,
color: color ?? AppColors.textColor,
fontSize: size,
fontWeight: fontWeight),
),
);