Answers for "flutter change button color"

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 "flutter change button color"

Browse Popular Code Answers by Language