Answers for "how to change floating action button flutter color"

2

flutter flotingactionbutton color

floatingActionButton: FloatingActionButton(
        child: const Icon(Icons.add),
        backgroundColor: Colors.pink,
        foregroundColor: Colors.black,
        splashColor: Colors.orange,
        focusColor: Colors.blue,
        hoverColor: Colors.red,
      ),
Posted by: Guest on August-20-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 "how to change floating action button flutter color"

Browse Popular Code Answers by Language