t1M method
t1M return text with style t1 medium
- Param
color
color = Colors.black
- Param
textAlign
textAlign = TextAlign.start
- Param
maxLines
maxLines = 1 (default)
- Param
fontSize
font size = 28
- Param
fontWeight
font weight = FontWeight.w500
Implementation
Widget t1M(
{Color color = Colors.black,
TextAlign textAlign = TextAlign.start,
int maxLines = 1}) {
return BaseText(this,
textAlign: textAlign,
maxLines: maxLines,
style: GoogleFonts.notoSans(
fontSize: 28, color: color, fontWeight: FontWeight.w500));
}