flutter_svg icon indicating copy to clipboard operation
flutter_svg copied to clipboard

Scaling for flutter web is broken in version 3.16.0

Open ifuterman opened this issue 1 year ago • 5 comments

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,
          ),
        ),
      );

expected result (version 3.13.8) broken (version 3.16.00)

ifuterman avatar Nov 20 '23 07:11 ifuterman

What platform(s) are you observing this on?

dnfield avatar Nov 20 '23 17:11 dnfield

What platform(s) are you observing this on?

WEB canvasKit. We test it in chrome (windows, Mac)

ifuterman avatar Nov 21 '23 07:11 ifuterman

Maybe is this the solution? https://github.com/dnfield/flutter_svg/issues/668#issuecomment-1786082177

ifuterman avatar Nov 22 '23 10:11 ifuterman

Same issue with flutter sdk 3.13.6

adonisRodxander avatar Dec 04 '23 01:12 adonisRodxander

Same issue with flutter sdk 3.13.6

For me it works with 3.13.xx

ifuterman avatar Dec 04 '23 07:12 ifuterman