I made a custom button widget, that extends MaterialButton. If the fillColor parameter is null, the fill color is take it from the primary color of
MaterialButton
fillColor