Answers for "Flutter How To Change The Color And The backgrond of ElevatedButton"

3

how to change the color of the back button in app bar flutter

appBar: AppBar(
  iconTheme: IconThemeData(
    color: Colors.black, //change your color here
  ),
  title: Text("Sample"),
  centerTitle: true,
),
Posted by: Guest on July-17-2020
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
1

How to change background color of Elevated Button in flutter

ElevatedButton(
              style: ElevatedButton.styleFrom(
                primary: Colors.amber,
              ), 
              child: Text('ElevatedButton'),
              onPressed: () {},
            ),
Posted by: Guest on August-24-2021

Code answers related to "Flutter How To Change The Color And The backgrond of ElevatedButton"

Browse Popular Code Answers by Language