import 'package:flutter/material.dart';
class UIText extends StatelessWidget {
final String text;
final TextOverflow overflow;
final TextAlign textAlign;
final int maxLines;
final double fontSize;
final Color color;
final FontWeight fontWeight;
final List<Shadow> shadows;
final TextDecoration decoration;
final Color decorationColor;
final TextDecorationStyle decorationStyle;
final double decorationThickness;
UIText(this.text, {
this.overflow,
this.textAlign,
this.maxLines,
this.fontSize,
this.color,
this.fontWeight,
this.shadows,
this.decoration,
this.decorationColor,
this.decorationStyle,
this.decorationThickness
});
@override
Widget build(BuildContext context) {
return Text(
text,
maxLines: maxLines,
overflow: overflow,
textAlign: textAlign,
style: TextStyle(
color: color,
fontSize: fontSize,
fontWeight: fontWeight,
shadows: shadows,
decoration: decoration,
decorationColor: decorationColor,
decorationStyle: decorationStyle,
decorationThickness: decorationThickness
),
);
}
}