Flutter- Card elevation without shadow

Viewed 726

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

2 Answers

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()
)

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

elevation: 0,
Related