Txt.headline4 constructor
Txt.headline4(
- String text, {
- Key? key,
- TextStyle? style,
- StrutStyle? strutStyle,
- TextAlign? align,
- TextDirection? direction,
- Locale? locale,
- bool? softWrap,
- TextOverflow? overflow,
- double? scaleFactor,
- int? maxLines,
- String? semanticsLabel,
- TextWidthBasis? widthBasis,
- double? size,
- Color? color,
- FontWeight? weight,
- String? fontFamily,
- bool italic = false,
Creates a txt widget with headline4 theme.
The style
parameter is used to override theme properties.
The parameters size
, color
, weight
, fontFamily
and italic
overrides the style properties.
The text
parameter must not be null.
Implementation
Txt.headline4(this.text,
{Key? key,
this.style,
this.strutStyle,
this.align,
this.direction,
this.locale,
this.softWrap,
this.overflow,
this.scaleFactor,
this.maxLines,
this.semanticsLabel,
this.widthBasis,
this.size,
this.color,
this.weight,
this.fontFamily,
this.italic = false})
: this.baseStyle = TxtStyle.headline4,
super(
key: key,
);