RoundedBackgroundText constructor

RoundedBackgroundText(
  1. String text, {
  2. Key? key,
  3. TextStyle? style,
  4. TextDirection? textDirection,
  5. TextAlign? textAlign,
  6. Color? backgroundColor,
  7. TextWidthBasis? textWidthBasis,
  8. String? ellipsis,
  9. Locale? locale,
  10. StrutStyle? strutStyle,
  11. TextScaler textScaler = TextScaler.noScaling,
  12. int? maxLines,
  13. TextHeightBehavior? textHeightBehavior,
  14. double innerRadius = kDefaultInnerRadius,
  15. 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);