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