t2R method

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

t2R return text with style t2 regular

  • Param color color = Colors.black
  • Param textAlign textAlign = TextAlign.start
  • Param maxLines maxLines = 1 (default)
  • Param fontSize font size = 20
  • Param fontWeight font weight = FontWeight.w400

Implementation

Widget t2R(
    {Color color = Colors.black,
    TextAlign textAlign = TextAlign.start,
    int maxLines = 1}) {
  return BaseText(this,
      textAlign: textAlign,
      maxLines: maxLines,
      style: GoogleFonts.notoSans(
          fontSize: 20, color: color, fontWeight: FontWeight.w400));
}