actionButton method
Implementation
TextButton actionButton(String value, Color color, {bool activate = true}) {
return TextButton(
style: TextButton.styleFrom(
foregroundColor: Colors.white,
backgroundColor: color,
padding: const EdgeInsets.all(16)),
child: Text(value),
onPressed: () => action(activate),
);
}