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