Headline1 constructor
const
Headline1(
- String text, {
- Key? key,
- TextStyle? style,
- TextAlign? textAlign,
- InlineSpan? textSpan,
- StrutStyle? strutStyle,
- TextDirection? textDirection,
- Locale? locale,
- bool? softWrap,
- TextOverflow? overflow,
- double? textScaleFactor,
- int? maxLines,
- String? semanticsLabel,
- TextWidthBasis? textWidthBasis,
Text Widget
with the headline1 theme style.
return Text(text, style: context.textTheme.headline1);
Implementation
const Headline1(
this.text, {
Key? key,
this.style,
this.textAlign,
this.textSpan,
this.strutStyle,
this.textDirection,
this.locale,
this.softWrap,
this.overflow,
this.textScaleFactor,
this.maxLines,
this.semanticsLabel,
this.textWidthBasis,
}) : super(key: key);