successButton function

Widget successButton({
  1. dynamic onTap,
  2. dynamic color,
  3. dynamic text,
})

Implementation

Widget successButton({onTap, color, text}) => Padding(
      padding: const EdgeInsets.fromLTRB(0, 8, 0, 8),
      child: InkWell(
        onTap: onTap,
        child: Container(
          decoration: BoxDecoration(
            color: PRIMARY,
            borderRadius: BorderRadius.circular(6),
          ),
          child: Padding(
            padding: const EdgeInsets.all(20),
            child: Row(
              mainAxisAlignment: MainAxisAlignment.spaceBetween,
              children: [
                const SizedBox(width: 20),
                Center(
                    child: Text(
                  text ?? '',
                  style: const TextStyle(
                      color: WHITE, fontSize: 14, fontWeight: FontWeight.w600),
                )),
                const Icon(Icons.arrow_forward, color: WHITE, size: 16),
              ],
            ),
          ),
        ),
      ),
    );