successButton function
Widget
successButton(
{ - dynamic onTap,
- dynamic color,
- 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),
],
),
),
),
),
);