NxText constructor
const
NxText(
- String text, {
- Key? key,
- Color? color = Colors.black87,
- double? fontSize = 14,
- double? lineHeight = 1,
- int? maxLines,
- TextAlign? textAlign = TextAlign.left,
- FontWeight? fontWeight = FontWeight.normal,
- Function? onPressed,
- NxColor? defaultColor,
- TextDecoration? decoration = TextDecoration.none,
- TextOverflow? overflow,
- FontStyle? fontStyle,
Implementation
const NxText(this.text, {
Key? key,
this.color = Colors.black87,
this.fontSize = 14,
this.lineHeight = 1,
this.maxLines,
this.textAlign = TextAlign.left,
this.fontWeight = FontWeight.normal,
this.onPressed,
this.defaultColor,
this.decoration = TextDecoration.none,
this.overflow,
this.fontStyle,
}) : super(key: key);