Answers for "how to change button color in flutter"

1

how to change the color of elevatedbutton in flutter

ElevatedButton(
  child: Text("Click Me!"),
  onPressed: () {},
  style: ButtonStyle(
    backgroundColor: MaterialStateProperty.all(Colors.red),
  ),
)
Posted by: Guest on October-09-2021

Code answers related to "how to change button color in flutter"

Browse Popular Code Answers by Language