Flutter- Card elevation without shadow

155

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()
)
Share:
155
M.A.
Author by

M.A.

Updated on December 26, 2022

Comments

  • M.A.
    M.A. over 1 year

    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

  • M.A.
    M.A. over 2 years
    But by giving elevation 0 the card view don't looks like this