standardBodyText function

Widget standardBodyText({
  1. required dynamic text,
  2. EdgeInsets? margin,
  3. Color? color,
  4. double? fontSize,
  5. FontWeight? fontWeight,
  6. TextOverflow? textOverflow,
  7. int? maxLines,
  8. TextAlign? textAlign,
})

Implementation

Widget standardBodyText({
  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: BodyTextStyle.textStyle(
          color: color,
          fontWeight: fontWeight,
          fontSize: fontSize),
      overflow: textOverflow,
      maxLines: maxLines,
      textAlign: textAlign,
    ),
  );
}