Change colour of raisedbutton?

81 Views Asked by At

I have tried to change the colour of a RaisedButton using button.tintColour = MaterialColor.blue.lighten2 but that doesn't result in a change of the button. Is there something I am missing?

1

There are 1 best solutions below

1
On BEST ANSWER

The tintColor on a UIButton by default only changes the color of the text. Try setting its backgroundColor