Label constructor
const
Label({
- Key? key,
- required String text,
- bool isAutoSize = false,
- Color textColor = Colors.black,
- TextAlign textAlign = TextAlign.center,
- int? maxLines = 1,
- TextOverflow? overflow = TextOverflow.ellipsis,
- bool? softWrap,
- String? fontFamily,
- double fontSize = 14,
- FontWeight fontWeight = FontWeight.normal,
- double? lineHeight,
- List<
Shadow> ? shadows, - TextDecoration? decoration,
- Color? decorationColor,
- 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,
});