How to remove a card's inner padding in flutter? How to remove a card's inner padding in flutter? dart dart

How to remove a card's inner padding in flutter?


I just want to leave a full code removing the default margin to make it clear

Card(  margin: EdgeInsets.zero,  clipBehavior: Clip.antiAlias,  shape: RoundedRectangleBorder(    borderRadius: BorderRadius.circular(8.0),  ),  elevation: 4,  child: Image.network(    model.item.image,    width: 20,    height: 200,    alignment: Alignment.center,    fit: BoxFit.cover,),


Can you try setting the margin property of card to EdgeInsets.zero


The Card widget has Padding by default. If this is not the desired behavior you could implement your own widget using Container that looks like a Card