Home > Net >  How to stack two icons one on top of the other?
How to stack two icons one on top of the other?

Time:01-16

I have two icons in a stack. I want one to hide the other, but instead it's semi-transparent and the other is shown behind it.

This is the code:

Stack(
     children: [
         Container(child: Icon(Icons.account_circle_rounded), padding: EdgeInsets.only(left: 10),),
         Container(child: Icon(Icons.account_circle_rounded), padding: EdgeInsets.only(left: 20),),
    ],
)

This is how it looks: enter image description here

CodePudding user response:

enter image description here

  •  Tags:  
  • Related