I have placed a bookmark icon inside a card, but am unable to remove the inner padding of the card. I would like to have the bookmark icon stick to the border of the card. How should I do it?
I have aligned the icon to "topRight", but it can't help.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With