flutter_svg
flutter_svg copied to clipboard
Scaling for flutter web is broken in version 3.16.0
We are forced to use supersampling to display images correctly. After updating flutter to version 3.16.0, part of the icon is cut off when scaling. everything worked correctly in version 3.13.8
Transform.scale(
filterQuality: FilterQuality.medium,
scale: 0.5,
alignment: Alignment.center,
child: Transform.scale(
scale: 2,
child: SvgPicture.asset(
asset,
width: width,
height: height,
colorFilter: color != null ? ColorFilter.mode(overrideColor ?? color, BlendMode.srcIn) : null,
clipBehavior: Clip.antiAlias,
),
),
);
What platform(s) are you observing this on?
What platform(s) are you observing this on?
WEB canvasKit. We test it in chrome (windows, Mac)
Maybe is this the solution? https://github.com/dnfield/flutter_svg/issues/668#issuecomment-1786082177
Same issue with flutter sdk 3.13.6
Same issue with flutter sdk 3.13.6
For me it works with 3.13.xx