getButtonStyle method
Implementation
ButtonStyle getButtonStyle(Color c1, Color c2) {
return ButtonStyle(backgroundColor:
MaterialStateProperty.resolveWith<Color?>((Set<MaterialState> states) {
if (states.contains(MaterialState.pressed)) return c2;
return c1;
}));
}