I am trying to change the background color of RaisedButton in Flutter but it is not changing at all. Can you please help me out. I am using the following code.
RaisedButton.icon(
onPressed: null
icon: Icon(Icons.refresh),
label: Text('Login'),
color: Color(0xffFF0000),
),
The issue may be because of onPressed method as you are passing null to it. It will not work until you pass null to it. The below code can help you to add color.