buttonColored method

Widget buttonColored(
  1. dynamic text,
  2. dynamic width,
  3. dynamic color
)

Implementation

Widget buttonColored(
    text,
    width,
    color
    ) {
  return Container(
    width: width,
    alignment: Alignment.center,
    height: 50,
    decoration:
    BoxDecoration(color: color, borderRadius: BorderRadius.circular(16)),
    child: Text(
      text,
      style: const TextStyle(
          fontSize: 16.0,
          fontWeight: FontWeight.w600,
          color: Color(0xffffffff)),
    ),
  );
}