0

Here my code:

IconButton(
          icon: Icon(CupertinoIcons.add_circled),
          color: Colors.orange,
          iconSize: CustomTheme.iconSize,
          splashColor: Colors.pink,
        
          onPressed: () {
           .....anything
          },
        ),

When I press the IconButton on the left side, it gets a grey circled background which will be filled by the pink splash color.

My question: How can I change the GREY color or even remove it completely???

Unpressed Icon ---> When Icon is pressed ----> Pressed Icon

Ayrix
  • 433
  • 5
  • 16

2 Answers2

0

add the following property

highlightColor: Colors.transparent,
0

You need to set 2 properties to Colors.transparent

IconButton(
    splashColor: Colors.transparent,
    highlightColor: Colors.transparent,