Answers for "how to change color of elevated button on onpress event in flutter"

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 "how to change color of elevated button on onpress event in flutter"

Browse Popular Code Answers by Language