I need to add a strikethougth in my icon
. I read about custom strikethougth using padding but it is working on text
Container(
child: _child,
padding: EdgeInsets.symmetric(horizontal: 8), // this line is optional to make strikethrough effect outside a text
decoration: BoxDecoration(
image: DecorationImage(image: AssetImage('graphics/strikethrough.png'), fit: BoxFit.fitWidth),
)
How can I add it to this code?
Icon(
Icons.list_alt,
color: Colors.white,
)
Edit 1
I tried :
Container(
padding: EdgeInsets.symmetric(horizontal: 8),
child: Icon(
Icons.shopping_cart,
color: Colors.white,
size: 200,
),
)
And it is not working