AddText function

Widget AddText(
  1. String text,
  2. Color color,
  3. double size,
  4. FontWeight weight,
  5. bool isUnderLine
)

Implementation

Widget AddText(String text, Color color, double size, FontWeight weight,
    bool isUnderLine) {
  return Text(text,
      textAlign: TextAlign.center,
      style: TextStyle(
          color: color,
          fontSize: size,
          fontWeight: weight,
          decoration:
              isUnderLine ? TextDecoration.underline : TextDecoration.none));
}