amount method

Widget amount(
  1. dynamic text,
  2. double size,
  3. dynamic color,
  4. dynamic weight,
)

Implementation

Widget amount(text, double size, color, weight) {
  return Row(
    children: [
      Text(
        "NGN ",
        // textDirection: TextDecoration.underline,
        style: TextStyle(
            fontSize: size,
            decorationStyle: TextDecorationStyle.double,
            decorationColor: color,
            decoration: TextDecoration.lineThrough,
            fontWeight: weight,
            color: color),
      ),
      Text(
        text,
        style: TextStyle(fontSize: size, fontWeight: weight, color: color),
      ),
    ],
  );
}