RoundedBackgroundText constructor
RoundedBackgroundText(
- String text, {
- Key? key,
- TextStyle? style,
- TextDirection? textDirection,
- TextAlign? textAlign,
- Color? backgroundColor,
- TextWidthBasis? textWidthBasis,
- String? ellipsis,
- Locale? locale,
- StrutStyle? strutStyle,
- TextScaler textScaler = TextScaler.noScaling,
- int? maxLines,
- TextHeightBehavior? textHeightBehavior,
- double innerRadius = kDefaultInnerRadius,
- double outerRadius = kDefaultOuterRadius,
Creates a rounded background text with a single style.
Implementation
RoundedBackgroundText(
String text, {
super.key,
TextStyle? style,
this.textDirection,
this.textAlign,
this.backgroundColor,
this.textWidthBasis,
this.ellipsis,
this.locale,
this.strutStyle,
this.textScaler = TextScaler.noScaling,
this.maxLines,
this.textHeightBehavior,
this.innerRadius = kDefaultInnerRadius,
this.outerRadius = kDefaultOuterRadius,
}) : text = TextSpan(text: text, style: style);