Quantcast
Channel: Active questions tagged strikethrough - Stack Overflow
Viewing all articles
Browse latest Browse all 88

How to add a Strikethrough to Icon in Flutter?

$
0
0

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


Viewing all articles
Browse latest Browse all 88

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>