text method
YYDialog
text({
- dynamic padding,
- dynamic text,
- dynamic color,
- dynamic fontSize,
- dynamic alignment,
- dynamic textAlign,
- dynamic maxLines,
- dynamic textDirection,
- dynamic overflow,
- dynamic fontWeight,
- dynamic fontFamily,
Implementation
YYDialog text(
{padding,
text,
color,
fontSize,
alignment,
textAlign,
maxLines,
textDirection,
overflow,
fontWeight,
fontFamily}) {
return this.widget(
Padding(
padding: padding ?? EdgeInsets.all(0.0),
child: Align(
alignment: alignment ?? Alignment.centerLeft,
child: Text(
text ?? "",
textAlign: textAlign,
maxLines: maxLines,
textDirection: textDirection,
overflow: overflow,
style: TextStyle(
color: color ?? Colors.black,
fontSize: fontSize ?? 14.0,
fontWeight: fontWeight,
fontFamily: fontFamily,
),
),
),
),
);
}