ResponsiveText constructor

const ResponsiveText(
  1. String text, {
  2. Key? key,
  3. String? shortText,
  4. TextStyle? style,
  5. bool autoResize = false,
  6. double minFontSize = 8.0,
  7. double stepGranularity = 0.5,
  8. int? maxLines,
  9. TextAlign? textAlign,
  10. TextOverflow overflow = TextOverflow.ellipsis,
  11. TextDirection? textDirection,
  12. String? semanticsLabel,
})

Creates a ResponsiveText widget.

Implementation

const ResponsiveText(
  this.text, {
  super.key,
  this.shortText,
  this.style,
  this.autoResize = false,
  this.minFontSize = 8.0,
  this.stepGranularity = 0.5,
  this.maxLines,
  this.textAlign,
  this.overflow = TextOverflow.ellipsis,
  this.textDirection,
  this.semanticsLabel,
}) : assert(minFontSize > 0, 'minFontSize must be positive');