简体   繁体   English

更改 Flutter 中 SVG 图像的颜色填充

[英]Change color fill of SVG image in Flutter

Hello everybody need your help, I'm loading svg images into flutter with the flutter_svg library, but I want to change the colors some areas of the image, the only thing I know is that I have to change the value of fill of the path tag, but somebody can tell me how?大家好,需要您的帮助,我正在使用 flutter_svg 库将 svg 图像加载到 flutter 中,但是我想更改 colors 图像的某些区域,我唯一知道的路径是填充值标签,但有人可以告诉我怎么做吗?

Thanks!!谢谢!!

SvgPicture.asset("asset/icon_name.jpg",color: Colors.black),

Here changed my svg fill color using color property.这里使用颜色属性更改了我的 svg 填充颜色。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM