BodyText1 constructor
const
BodyText1(
- 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 bodyText1 theme style.
return Text(text, style: context.textTheme.bodyText1);
Implementation
const BodyText1(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);