button function
Widget
button(
{ - dynamic onTap,
- dynamic color,
- dynamic text,
})
Implementation
Widget button({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.fromLTRB(0, 15, 0, 15),
child: Center(
child: Text(
text ?? '',
style: const TextStyle(
color: WHITE, fontSize: 14, fontWeight: FontWeight.w600),
)),
),
),
),
);