Label constructor

const Label({
  1. Key? key,
  2. required String text,
  3. bool isAutoSize = false,
  4. Color textColor = Colors.black,
  5. TextAlign textAlign = TextAlign.center,
  6. int? maxLines = 1,
  7. TextOverflow? overflow = TextOverflow.ellipsis,
  8. bool? softWrap,
  9. String? fontFamily,
  10. double fontSize = 14,
  11. FontWeight fontWeight = FontWeight.normal,
  12. double? lineHeight,
  13. List<Shadow>? shadows,
  14. TextDecoration? decoration,
  15. Color? decorationColor,
  16. double? decorationThickness,
})

Func

Implementation

const Label({
  super.key,
  required this.text,
  this.isAutoSize = false,
  this.textColor = Colors.black,
  this.textAlign = TextAlign.center,
  this.maxLines = 1,
  this.overflow = TextOverflow.ellipsis,
  this.softWrap,
  this.fontFamily,
  this.fontSize = 14,
  this.fontWeight = FontWeight.normal,
  this.lineHeight,
  this.shadows,
  this.decoration,
  this.decorationColor,
  this.decorationThickness,
});