Home > Blockchain >  Flutter- Card elevation without shadow
Flutter- Card elevation without shadow

Time:12-29

I want to design a my card like this. But when I use elevation property generally it gives a card view with shadow. How to remove shadow from card and make a view like this image.

card

CodePudding user response:

You can use shadowColor : Colors.transparent for it.

Card(
    shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(15.0)),
    elevation: 20,
    shadowColor: Colors.transparent,
    color: Colors.white,
    child : Container()
)

CodePudding user response:

There is an optional named param elevation. Set it zero.

elevation: 0,
  • Related