NxExpandableText constructor
const
NxExpandableText({})
Creates an expandable text widget.
text
- The text to display and expandbuttonText
- Text for the expand buttonmaxLines
- Number of lines to show before truncatingicon
- Custom close icon for the dialogdialogTextStyle
- Text style in the dialogtextStyle
- Text style for the truncated textbuttonTextStyle
- Text style for the expand buttonbackgroundColor
- Background color of the dialog
Implementation
const NxExpandableText({
required this.text,
required this.buttonText,
super.key,
this.icon,
this.dialogTextStyle,
this.textStyle,
this.buttonTextStyle,
this.backgroundColor,
this.maxLines = 1,
});