Skip to content

Some SVG stop displaying with Flutter 2.10.0 #661

Description

@ycherniavskyi

After upgrading Flutter from 2.8.1 to 2.10.0 next SVG stop displaying:

<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg" xml:space="preserve" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2">
  <g transform="matrix(2.17391 0 0 2.04082 -2547.826 -500)">
    <path style="fill:none" d="M1172 245h46v49h-46z"/>
    <clipPath id="a">
      <path d="M1172 245h46v49h-46z"/>
    </clipPath>
    <g clip-path="url(#a)">
      <path d="M25.54 37.52c-4.63 0-9-4.13-11.92-6.94L13 30l-.55-.58C8.39 25.15 1.61 18 8.37 11.27c1.81-1.81 4-1.69 6.12.31 1.18 1.13 2.56 3.11 2.58 5a3.19 3.19 0 0 1-.93 2.35 7.122 7.122 0 0 1-1.05.83c-.82.57-.88.68-.82.86a19.08 19.08 0 0 0 3.43 4.69 19.08 19.08 0 0 0 4.69 3.43c.18.06.3 0 .86-.82.25-.354.528-.689.83-1a3.204 3.204 0 0 1 2.35-.92c1.86 0 3.84 1.4 5 2.58 2 2.09 2.12 4.32.31 6.12a8.625 8.625 0 0 1-6.2 2.82ZM11.17 12.23a1.704 1.704 0 0 0-1.22.62c-4.83 4.82-1 9.65 4.1 15l.57.6.54.51c5.36 5.1 10.19 8.93 15 4.1.67-.67 1.09-1.5-.35-3a6 6 0 0 0-3.38-1.9.87.87 0 0 0-.75.29 4.874 4.874 0 0 0-.58.74c-.57.82-1.63 2.35-3.56 1.6l-.13-.07a21.102 21.102 0 0 1-5.28-3.86 21.232 21.232 0 0 1-3.87-5.28l-.06-.14c-.75-1.93.77-3 1.6-3.56.261-.174.508-.368.74-.58a.938.938 0 0 0 .28-.74A6 6 0 0 0 13 13.19a2.723 2.723 0 0 0-1.83-.96ZM27 19.34h-2.26a1.075 1.075 0 0 0-1.06-1.06v-2.23h.02a3.315 3.315 0 0 1 3.3 3.29ZM32.3 19.34h-2.23c-.033-3.481-2.899-6.329-6.38-6.34v-2.28c4.725.005 8.61 3.895 8.61 8.62Z" style="fill:#fff;fill-rule:nonzero" transform="matrix(1.4375 0 0 1.53125 1164.09 236.548)"/>
      <path d="M37.5 19.33h-2.23c-.005-6.351-5.229-11.575-11.58-11.58V5.52c7.574.005 13.805 6.236 13.81 13.81Z" style="fill:#fff;fill-rule:nonzero" transform="matrix(1.4375 0 0 1.53125 1164.09 236.548)"/>
    </g>
  </g>
</svg>

After downgrading Flutter back to 2.8.1, it started displaying as expected.

I need to mention that some other SVG (which I tried during troubleshooting) displayed correctly with Flutter 2.10.0.

I observe this issue on Android and iOS.

Is something wrong with my SVG? (but it does not change between Flutter version update)
Or is there some broken change happening in the new Flutter version?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions