flutter_svg icon indicating copy to clipboard operation
flutter_svg copied to clipboard

After version 1.0.0 colorBlendMode: BlendMode.luminosity does not grey out svgs

Open aytunch opened this issue 4 years ago • 1 comments

I haven't changed my code just upgraded the package and previously my colored svg was rendering as grey and now it renders with full color. Is there another way to accomplish single color effect? Thanks

             SvgPicture.asset(
                "assets/svg/cart.svg",
                colorBlendMode: BlendMode.luminosity,
                fit: BoxFit.scaleDown,
              ),

aytunch avatar Dec 09 '21 22:12 aytunch

Can you share a complete reproduction?

The implementation around color filtering changed for sure. I would not expect it to have broken this way though.

dnfield avatar Dec 10 '21 03:12 dnfield