AppAutoSizeText constructor

AppAutoSizeText(
  1. String data, {
  2. Key? key,
  3. Key? textKey,
  4. TextStyle? style,
  5. StrutStyle? strutStyle,
  6. double? minFontSize,
  7. double maxFontSize = double.infinity,
  8. double stepGranularity = 1,
  9. List<double>? presetFontSizes,
  10. AutoSizeGroup? group,
  11. TextAlign? textAlign,
  12. TextDirection? textDirection,
  13. Locale? locale,
  14. bool? softWrap,
  15. bool wrapWords = true,
  16. TextOverflow? overflow,
  17. Widget? overflowReplacement,
  18. double? textScaleFactor,
  19. int? maxLines,
  20. String? semanticsLabel,
})

Implementation

AppAutoSizeText(
  super.data, {
  super.key,
  super.textKey,
  super.style,
  super.strutStyle,
  double? minFontSize,
  super.maxFontSize = double.infinity,
  super.stepGranularity = 1,
  super.presetFontSizes,
  super.group,
  super.textAlign,
  super.textDirection,
  super.locale,
  super.softWrap,
  super.wrapWords = true,
  super.overflow,
  super.overflowReplacement,
  super.textScaleFactor,
  super.maxLines,
  super.semanticsLabel,
}) : super(minFontSize: minFontSize ?? 10.sp.toInt().toDouble());