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