RoundedBackgroundText.rich constructor
const
RoundedBackgroundText.rich({
- Key? key,
- required InlineSpan text,
- TextDirection? textDirection,
- Color? backgroundColor,
- TextAlign? textAlign,
- 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 based on an InlineSpan, that can have multiple styles
Implementation
const RoundedBackgroundText.rich({
super.key,
required this.text,
this.textDirection,
this.backgroundColor,
this.textAlign,
this.textWidthBasis,
this.ellipsis,
this.locale,
this.strutStyle,
this.textScaler = TextScaler.noScaling,
this.maxLines,
this.textHeightBehavior,
this.innerRadius = kDefaultInnerRadius,
this.outerRadius = kDefaultOuterRadius,
}) : assert(innerRadius >= 0.0 && innerRadius <= 20.0),
assert(outerRadius >= 0.0 && outerRadius <= 20.0);