wrappingText static method

Widget wrappingText(
  1. String text, {
  2. double size = defaultTextSize,
  3. Color? color,
  4. TextAlign textAlign = TextAlign.left,
  5. 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),
      ),
    );