headline1Custom method

Widget headline1Custom(
  1. BuildContext context, {
  2. Key? key,
  3. bool inherit = true,
  4. Color? color,
  5. Color? backgroundColor,
  6. double? fontSize,
  7. FontWeight? fontWeight,
  8. FontStyle? fontStyle,
  9. double? letterSpacing,
  10. double? wordSpacing,
  11. TextBaseline? textBaseline,
  12. double? height,
  13. TextLeadingDistribution? leadingDistribution,
  14. Paint? foreground,
  15. Paint? background,
  16. List<Shadow>? shadows,
  17. List<FontFeature>? fontFeatures,
  18. TextDecoration? decoration,
  19. Color? decorationColor,
  20. TextDecorationStyle? decorationStyle,
  21. double? decorationThickness,
  22. String? debugLabel,
  23. String? fontFamily,
  24. List<String>? fontFamilyFallback,
  25. String? package,
  26. StrutStyle? strutStyle,
  27. TextAlign? textAlign,
  28. TextDirection? textDirection,
  29. Locale? locale,
  30. bool? softWrap,
  31. TextOverflow? overflow,
  32. double? textScaleFactor,
  33. int? maxLines,
  34. String? semanticsLabel,
  35. TextWidthBasis? textWidthBasis,
  36. TextHeightBehavior? textHeightBehavior,
})

String to a Text widget with the TextStyle set to Typography.headline1 with Copywith TextStyle.

Implementation

Widget headline1Custom(BuildContext context,
        {Key? key,
        bool inherit = true,
        Color? color,
        Color? backgroundColor,
        double? fontSize,
        FontWeight? fontWeight,
        FontStyle? fontStyle,
        double? letterSpacing,
        double? wordSpacing,
        TextBaseline? textBaseline,
        double? height,
        TextLeadingDistribution? leadingDistribution,
        Paint? foreground,
        Paint? background,
        List<Shadow>? shadows,
        List<FontFeature>? fontFeatures,
        TextDecoration? decoration,
        Color? decorationColor,
        TextDecorationStyle? decorationStyle,
        double? decorationThickness,
        String? debugLabel,
        String? fontFamily,
        List<String>? fontFamilyFallback,
        String? package,
        StrutStyle? strutStyle,
        TextAlign? textAlign,
        TextDirection? textDirection,
        Locale? locale,
        bool? softWrap,
        TextOverflow? overflow,
        double? textScaleFactor,
        int? maxLines,
        String? semanticsLabel,
        TextWidthBasis? textWidthBasis,
        TextHeightBehavior? textHeightBehavior}) =>
    Text(
      this,
      style: Theme.of(context).textTheme.headline1?.copyWith(
            inherit: inherit,
            color: color,
            backgroundColor: backgroundColor,
            fontSize: fontSize,
            fontWeight: fontWeight,
            fontStyle: fontStyle,
            letterSpacing: letterSpacing,
            wordSpacing: wordSpacing,
            textBaseline: textBaseline,
            height: height,
            leadingDistribution: leadingDistribution,
            locale: locale,
            foreground: foreground,
            background: background,
            shadows: shadows,
            fontFeatures: fontFeatures,
            decoration: decoration,
            decorationColor: decorationColor,
            decorationStyle: decorationStyle,
            decorationThickness: decorationThickness,
            debugLabel: debugLabel,
            fontFamily: fontFamily,
            fontFamilyFallback: fontFamilyFallback,
            package: package,
            overflow: overflow,
          ),
      key: key,
      strutStyle: strutStyle,
      textAlign: textAlign,
      textDirection: textDirection,
      locale: locale,
      softWrap: softWrap,
      overflow: overflow,
      textScaleFactor: textScaleFactor,
      maxLines: maxLines,
      semanticsLabel: semanticsLabel,
      textWidthBasis: textWidthBasis,
      textHeightBehavior: textHeightBehavior,
    );