ResponsiveText constructor

const ResponsiveText(
  1. String text, {
  2. Key? key,
  3. double minFontSize = 12,
  4. double maxFontSize = 24,
  5. TextStyle? style,
  6. TextAlign? textAlign,
})

Creates a ResponsiveText widget.

  • text is required.
  • minFontSize and maxFontSize determine the scaling range.

Implementation

const ResponsiveText(
  this.text, {
  super.key,
  this.minFontSize = 12,
  this.maxFontSize = 24,
  this.style,
  this.textAlign,
});