flutter_svg
flutter_svg copied to clipboard
Add colorMapper argument to named SvgPicture constructors
in #856 you mentioned that people should use ColorMapper and that was exactly what I wanted anyway. But as the named constructors do not have a colorMapper argument, I didn't know it existed as an option. The argument could be passed through to the SvgLoader which then could use it. That would be more convinient than having to use the unnamed constructor with the correct BytesLoader.
The answer is in the same issue comment
I know how to use ColorMapper. That's not the issue. I want to use the named SvgPicture constructors and use ColorMapper.
currently to use ColorMapper , we need to use the loader directly (SvgAssetLoader/SvgFileLoader/SvgStringLoader/SvgBytesLoader classes) , and we can not use it with SvgPicture which make it harder to use