propText function

Widget propText({
  1. required String text,
  2. dynamic fontSize = 14,
  3. Color? textColor,
  4. Color? bgColor,
  5. FontWeight? fontWeight,
  6. FontStyle? fontStyle,
  7. double? letterSpacing,
  8. double? wordSpacing,
  9. TextBaseline? textBaseline,
  10. double? height,
  11. Locale? locale,
  12. Paint? foreground,
  13. Paint? background,
  14. List<Shadow>? shadows,
  15. List<FontFeature>? fontFeatures,
  16. TextDecoration? decoration,
  17. TextDecorationStyle? decorationStyle,
  18. double? decorationThickness,
})

Implementation

Widget propText({
  required String text,
  final fontSize = 14,
  final Color? textColor,
  final Color? bgColor,
  final FontWeight? fontWeight,
  final FontStyle? fontStyle,
  final double? letterSpacing,
  final double? wordSpacing,
  final TextBaseline? textBaseline,
  final double? height,
  final Locale? locale,
  final Paint? foreground,
  final Paint? background,
  final List<Shadow>? shadows,
  final List<FontFeature>? fontFeatures,
  final TextDecoration? decoration,
  final TextDecorationStyle? decorationStyle,
  final double? decorationThickness,
}) =>
    Text(
      text,
      style: GoogleFonts.poppins(
        fontSize: fontSize,
        color: textColor,
        backgroundColor: bgColor,
        fontWeight: fontWeight,
        letterSpacing: letterSpacing,
        wordSpacing: wordSpacing,
        textBaseline: textBaseline,
        height: height,
        locale: locale,
        foreground: foreground,
        background: background,
        shadows: shadows,
        fontFeatures: fontFeatures,
        decoration: decoration,
        decorationStyle: decorationStyle,
        decorationThickness: decorationThickness,
        fontStyle: fontStyle,
      )
    );