d1 method

Widget d1({
  1. Color color = Colors.black,
  2. TextAlign textAlign = TextAlign.start,
  3. int maxLines = 1,
})

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));
}