Repository: flutter
Issue: [flutter_svg] Some SVG Images aren't rendered properly
Labels: package,c: rendering,has reproducible steps,team-engine,found in release: 3.27,p: flutter_svg,found in release: 3.28

### Steps to reproduce

I observe this issue when I try to add SVG Images in my app using `SvgPicture.asset()`. Some of my SVGs aren't rendered properly.

### Expected results

All SVG images should be rendered properly by the package. I observe issues in three of my images, each of these is just white strokes with no background:
![Screenshot 2025-01-06 192507](https://github.com/user-attachments/assets/fd95dc9b-05e4-425e-b54d-b4b6a0f0ce22)
![Screenshot 2025-01-06 192523](https://github.com/user-attachments/assets/d705a82d-9b8b-4d97-976f-17499e337ed5)
![Screenshot 2025-01-06 192536](https://github.com/user-attachments/assets/984dfb1d-fd14-4f4f-ad53-003c937bd3e4)


### Actual results

I observe a weird black background of different shapes or weird black strokes in my images.

### Code sample

<details open><summary>Code sample</summary>
Uploading some simple code to render the SVG images, I have used a red background to distinguish the black background and strokes coming in the image: 

``` dart
@override
  Widget build(BuildContext context) {
    return SafeArea(
      child: Container(
        color: Colors.red,
        child: Column(
          children: [
            SizedBox(
              height: 100,
              width: 100,
            ),
            SizedBox(
              height: 100,
              width: 100,
              child: SvgPicture.asset('vectors/logic_analyzer.svg'),
            ),
            SizedBox(
              height: 100,
              width: 100,
            ),
            SizedBox(
              height: 100,
              width: 100,
              child: SvgPicture.asset('vectors/power_source.svg'),
            ),
            SizedBox(
              height: 100,
              width: 100,
            ),
            SizedBox(
              height: 100,
              width: 100,
              child: SvgPicture.asset('vectors/wave_generator.svg'),
            ),
          ],
        ),
      ),
    );
  }
}
```
Here are the three SVG images: 
1. _logic_analyzer.svg_ :- 
``` svg
<svg
    xmlns="http://www.w3.org/2000/svg"
    viewBox="0 0 15 15"
    id="vector">
    <path
        id="path_4"
        d="M 7.5 0.196 C 5.564 0.196 3.705 0.966 2.335 2.335 C 0.966 3.705 0.196 5.564 0.196 7.5 C 0.196 9.436 0.966 11.295 2.335 12.665 C 3.705 14.034 5.564 14.804 7.5 14.804 C 9.436 14.804 11.295 14.034 12.665 12.665 C 14.034 11.295 14.804 9.436 14.804 7.5 C 14.804 5.564 14.034 3.705 12.665 2.335 C 11.295 0.966 9.436 0.196 7.5 0.196 Z"
        fill="#00000000"
        stroke="#ffffff"
        stroke-width="0.39164442"
        stroke-linecap="round"
        stroke-linejoin="round"/>
    <path
        id="path_5"
        d="M 5.162 5.568 C 4.614 5.568 4.169 5.915 4.169 6.341 L 4.169 9.174 C 4.169 9.6 4.614 9.947 5.162 9.947 L 9.797 9.947 C 10.345 9.947 10.79 9.6 10.79 9.174 L 10.79 6.341 C 10.79 5.915 10.345 5.568 9.797 5.568 Z M 4.935 5.933 L 9.986 5.933 C 10.169 5.933 10.43 6.198 10.43 6.341 L 10.43 7.5 L 10.43 8.015 L 10.43 9.174 C 10.43 9.316 10.092 9.582 9.91 9.582 L 5.086 9.582 C 4.903 9.582 4.566 9.317 4.566 9.174 L 4.566 8.015 L 4.566 7.5 L 4.566 6.341 C 4.566 6.145 4.78 5.933 5.01 5.933 Z"
        fill="#ffffff"
        stroke="#00000000"
        stroke-width="1.20042455"/>
    <path
        id="path_6"
        d="M 5.318 4.023 C 5.318 3.881 5.421 3.765 5.548 3.765 L 9.453 3.765 C 9.58 3.765 9.683 3.881 9.683 4.023 C 9.683 4.165 9.786 4.281 9.913 4.281 C 10.04 4.281 10.143 4.166 10.143 4.023 C 10.142 3.597 9.833 3.25 9.453 3.25 L 5.547 3.25 C 5.167 3.25 4.858 3.597 4.858 4.023 C 4.858 4.165 4.961 4.281 5.088 4.281 C 5.215 4.281 5.318 4.166 5.318 4.023 Z"
        fill="#ffffff"
        stroke="#00000000"/>
    <path
        id="path_7"
        d="M 3.939 4.538 C 3.559 4.538 3.25 4.885 3.25 5.311 L 3.25 10.205 C 3.25 10.631 3.559 10.978 3.939 10.978 L 4.169 10.978 C 4.169 11.404 4.478 11.751 4.858 11.751 L 5.317 11.751 C 5.697 11.751 6.006 11.404 6.006 10.978 L 8.992 10.978 C 8.992 11.404 9.301 11.751 9.681 11.751 L 10.14 11.751 C 10.52 11.751 10.829 11.404 10.829 10.978 L 11.059 10.978 C 11.439 10.978 11.748 10.631 11.748 10.205 L 11.748 9.432 C 11.748 9.29 11.645 9.174 11.518 9.174 C 11.391 9.174 11.288 9.289 11.288 9.432 L 11.288 10.205 C 11.288 10.347 11.185 10.463 11.058 10.463 L 10.828 10.463 L 8.99 10.463 L 6.004 10.463 L 4.166 10.463 L 3.936 10.463 C 3.809 10.463 3.706 10.347 3.706 10.205 L 3.709 5.311 C 3.709 5.169 3.812 5.053 3.939 5.053 L 11.061 5.053 C 11.188 5.053 11.291 5.168 11.291 5.311 L 11.291 8.66 C 11.291 8.802 11.394 8.918 11.521 8.918 C 11.648 8.918 11.751 8.803 11.751 8.66 L 11.75 5.311 C 11.75 4.885 11.441 4.538 11.061 4.538 Z M 4.628 10.977 L 5.547 10.977 C 5.547 11.119 5.444 11.235 5.317 11.235 L 4.858 11.235 C 4.731 11.235 4.628 11.119 4.628 10.977 Z M 9.453 10.977 L 10.372 10.977 C 10.372 11.119 10.269 11.235 10.142 11.235 L 9.683 11.235 C 9.556 11.235 9.453 11.119 9.453 10.977 Z"
        fill="#ffffff"
        stroke="#00000000"
        stroke-width="6.48979425"/>
    <path
        id="path_8"
        d="M 7.734 6.292 C 7.668 6.292 7.592 6.293 7.506 6.293 C 6.913 6.297 6.887 6.299 6.842 6.328 C 6.816 6.345 6.779 6.378 6.76 6.401 C 6.726 6.442 6.725 6.458 6.72 7.574 L 6.715 8.706 L 6.58 8.706 L 6.445 8.706 L 6.44 7.938 L 6.435 7.17 L 6.386 7.113 C 6.302 7.015 6.28 7.012 5.739 7.017 C 5.284 7.021 5.255 7.023 5.211 7.053 C 5.099 7.128 5.095 7.141 5.089 7.453 L 5.084 7.739 L 4.82 7.739 L 4.564 7.739 C 4.557 7.744 4.549 7.748 4.542 7.752 C 4.541 7.753 4.539 7.753 4.538 7.754 C 4.535 7.755 4.532 7.756 4.53 7.757 C 4.53 7.759 4.53 7.762 4.53 7.764 C 4.53 7.802 4.53 7.839 4.53 7.877 L 4.53 7.978 C 4.53 8.01 4.53 8.042 4.53 8.074 C 4.53 8.107 4.53 8.14 4.53 8.174 C 4.531 8.187 4.531 8.2 4.529 8.213 C 4.538 8.215 4.547 8.217 4.555 8.221 C 4.556 8.222 4.558 8.222 4.559 8.223 L 4.983 8.223 C 5.462 8.223 5.49 8.218 5.574 8.12 C 5.619 8.067 5.62 8.065 5.625 7.782 L 5.63 7.498 L 5.764 7.498 L 5.898 7.498 L 5.903 8.267 C 5.908 9.017 5.909 9.037 5.943 9.078 C 5.962 9.101 5.999 9.134 6.025 9.151 C 6.07 9.181 6.093 9.182 6.577 9.182 L 7.082 9.182 L 7.142 9.141 C 7.263 9.059 7.258 9.121 7.258 7.884 L 7.258 6.772 L 7.529 6.772 L 7.8 6.772 L 7.8 7.762 C 7.8 8.859 7.796 8.818 7.911 8.896 L 7.975 8.94 L 8.478 8.94 L 8.981 8.94 L 9.041 8.899 C 9.157 8.82 9.157 8.825 9.157 8.126 L 9.157 7.498 L 9.293 7.498 L 9.429 7.498 L 9.429 7.763 C 9.429 8.064 9.44 8.104 9.54 8.172 L 9.604 8.216 L 10.053 8.22 L 10.451 8.224 C 10.46 8.216 10.469 8.208 10.479 8.2 C 10.479 8.196 10.479 8.191 10.479 8.187 C 10.479 8.16 10.479 8.132 10.479 8.105 C 10.479 8.048 10.479 7.991 10.481 7.937 C 10.482 7.911 10.484 7.886 10.487 7.86 C 10.487 7.854 10.487 7.847 10.487 7.841 C 10.487 7.835 10.487 7.83 10.486 7.824 C 10.485 7.819 10.485 7.814 10.483 7.809 C 10.481 7.801 10.48 7.793 10.479 7.785 C 10.479 7.782 10.478 7.779 10.477 7.776 C 10.46 7.767 10.443 7.754 10.429 7.738 C 10.389 7.741 10.327 7.74 10.236 7.74 L 9.974 7.74 L 9.969 7.456 L 9.964 7.172 L 9.915 7.115 C 9.831 7.017 9.809 7.014 9.268 7.019 C 8.813 7.023 8.784 7.025 8.74 7.055 C 8.714 7.072 8.677 7.105 8.658 7.128 C 8.624 7.168 8.623 7.19 8.618 7.818 L 8.613 8.466 L 8.48 8.465 L 8.345 8.465 L 8.341 7.456 L 8.336 6.446 L 8.287 6.389 C 8.212 6.302 8.198 6.29 7.733 6.292 Z M 4.586 7.541 C 4.581 7.545 4.576 7.55 4.571 7.554 C 4.575 7.554 4.579 7.554 4.583 7.554 C 4.584 7.55 4.584 7.545 4.585 7.541 Z"
        fill="#ffffff"
        stroke="#00000000"
        stroke-width="0.13160402"/>
    <path
        id="path_9"
        d="M 12.5 0 L 12.5 2.25"
        fill="#00000000"
        stroke="#fff9f9"
        stroke-width="0.40000001"/>
    <path
        id="path_10"
        d="M 0 12.5 L 2.25 12.5"
        fill="#00000000"
        stroke="#ffffff"
        stroke-width="0.40000001"/>
</svg>
```

2. _power_source.svg_ :- 
```svg
<svg
    xmlns="http://www.w3.org/2000/svg"
    viewBox="0 0 15 15"
    id="vector">
    <path
        id="path"
        d="M 0.196 7.5 C 0.196 9.436 0.966 11.295 2.335 12.665 C 3.705 14.034 5.564 14.804 7.5 14.804 C 9.436 14.804 11.295 14.034 12.665 12.665 C 14.034 11.295 14.804 9.436 14.804 7.5 C 14.804 5.564 14.034 3.705 12.665 2.335 C 11.295 0.966 9.436 0.196 7.5 0.196 C 5.564 0.196 3.705 0.966 2.335 2.335 C 0.966 3.705 0.196 5.564 0.196 7.5 Z"
        fill="#00000000"
        stroke="#ffffff"
        stroke-width="0.40234087"
        stroke-linecap="round"
        stroke-linejoin="round"/>
    <path
        id="path_1"
        d="M 11.484 7.766 L 10.421 7.766 C 10.274 7.766 10.155 7.647 10.155 7.5 C 10.155 7.353 10.274 7.234 10.421 7.234 L 11.484 7.234 C 11.631 7.234 11.75 7.353 11.75 7.5 C 11.75 7.647 11.631 7.766 11.484 7.766 Z M 4.578 7.766 L 3.516 7.766 C 3.369 7.766 3.25 7.647 3.25 7.5 C 3.25 7.354 3.369 7.235 3.516 7.235 L 4.579 7.235 C 4.726 7.235 4.845 7.354 4.845 7.501 C 4.845 7.648 4.726 7.767 4.579 7.767 Z M 10.031 6.305 C 9.939 6.305 9.849 6.257 9.8 6.172 C 9.727 6.045 9.771 5.883 9.898 5.809 L 10.818 5.278 C 10.944 5.205 11.107 5.248 11.181 5.375 C 11.254 5.502 11.21 5.665 11.083 5.738 L 10.163 6.269 C 10.121 6.294 10.076 6.305 10.031 6.305 Z M 4.05 9.758 C 3.958 9.758 3.869 9.711 3.82 9.625 C 3.746 9.498 3.789 9.336 3.917 9.262 L 4.858 8.719 C 4.985 8.646 5.147 8.689 5.221 8.816 C 5.294 8.943 5.251 9.106 5.124 9.179 L 4.182 9.723 C 4.141 9.747 4.095 9.758 4.05 9.758 Z M 10.95 9.758 C 10.905 9.758 10.859 9.747 10.817 9.722 L 9.897 9.191 C 9.771 9.118 9.727 8.956 9.8 8.828 C 9.873 8.701 10.036 8.657 10.163 8.731 L 11.083 9.262 C 11.21 9.335 11.254 9.498 11.18 9.625 C 11.131 9.71 11.042 9.758 10.95 9.758 Z M 4.99 6.317 C 4.945 6.317 4.899 6.306 4.857 6.281 L 3.917 5.738 C 3.789 5.665 3.746 5.502 3.82 5.375 C 3.893 5.248 4.055 5.204 4.182 5.278 L 5.123 5.821 C 5.25 5.894 5.294 6.057 5.22 6.184 C 5.171 6.269 5.082 6.317 4.99 6.317 Z M 6.438 11.75 C 6.403 11.75 6.368 11.743 6.334 11.729 C 6.215 11.679 6.15 11.55 6.179 11.425 L 6.9 8.297 L 5.641 8.297 C 5.543 8.297 5.454 8.244 5.407 8.159 C 5.361 8.073 5.365 7.969 5.418 7.887 L 8.34 3.371 C 8.41 3.263 8.549 3.221 8.666 3.271 C 8.785 3.321 8.85 3.45 8.821 3.575 L 8.1 6.703 L 9.359 6.703 C 9.456 6.703 9.546 6.756 9.592 6.842 C 9.638 6.928 9.635 7.032 9.582 7.113 L 6.66 11.629 C 6.61 11.707 6.525 11.75 6.438 11.75 Z M 6.129 7.766 L 7.234 7.766 C 7.315 7.766 7.392 7.803 7.442 7.866 C 7.492 7.929 7.511 8.012 7.493 8.091 L 7.037 10.07 L 8.871 7.235 L 7.766 7.235 C 7.685 7.235 7.608 7.198 7.558 7.135 C 7.508 7.072 7.489 6.989 7.507 6.91 L 7.964 4.932 Z"
        fill="#ffffff"
        stroke="#00000000"/>
    <path
        id="path_2"
        d="M 12.5 0 L 12.5 2.25"
        fill="#00000000"
        stroke="#ffffff"
        stroke-width="0.41055191"/>
    <path
        id="path_3"
        d="M 0 12.5 L 2.25 12.5"
        fill="#00000000"
        stroke="#ffffff"
        stroke-width="0.41055191"/>
</svg>
```

3. _wave_generator.svg_ :-  
```svg
<svg
    xmlns="http://www.w3.org/2000/svg"
    viewBox="0 0 15 15"
    id="vector">
    <path
        id="path"
        d="M 0.196 7.5 C 0.196 9.436 0.966 11.295 2.335 12.665 C 3.705 14.034 5.564 14.804 7.5 14.804 C 9.436 14.804 11.295 14.034 12.665 12.665 C 14.034 11.295 14.804 9.436 14.804 7.5 C 14.804 5.564 14.034 3.705 12.665 2.335 C 11.295 0.966 9.436 0.196 7.5 0.196 C 5.564 0.196 3.705 0.966 2.335 2.335 C 0.966 3.705 0.196 5.564 0.196 7.5 Z"
        fill="#00000000"
        stroke="#ffffff"
        stroke-width="0.40197626"
        stroke-linecap="round"
        stroke-linejoin="round"/>
    <path
        id="path_1"
        d="M 7.577 8.458 C 6.367 8.458 5.385 9.435 5.385 10.64 L 9.769 10.64 C 9.769 9.435 8.788 8.458 7.577 8.458 Z M 7.577 9.549 C 7.476 9.549 7.394 9.63 7.394 9.731 L 7.394 10.276 L 5.786 10.276 C 5.856 9.929 6.027 9.61 6.285 9.354 C 6.63 9.01 7.089 8.821 7.577 8.821 C 8.065 8.821 8.524 9.01 8.869 9.354 C 9.126 9.61 9.297 9.929 9.368 10.276 L 7.76 10.276 L 7.76 9.731 C 7.76 9.63 7.678 9.549 7.577 9.549 Z"
        fill="#ffffff"
        stroke="#00000000"
        stroke-width="5.65668058"/>
    <path
        id="path_2"
        d="M 5.684 4.471 L 5.643 4.381 C 5.568 4.169 5.365 4.017 5.126 4.017 C 4.823 4.017 4.578 4.261 4.578 4.562 C 4.578 4.799 4.731 5.001 4.943 5.076 L 4.943 6.198 L 4.76 6.199 C 4.659 6.199 4.578 6.28 4.578 6.381 L 4.578 7.29 L 4.029 7.29 C 3.928 7.29 3.847 7.371 3.847 7.472 L 3.847 11.472 C 3.847 11.573 3.929 11.654 4.029 11.654 L 10.97 11.654 C 11.071 11.654 11.152 11.573 11.152 11.472 L 11.152 7.472 C 11.152 7.371 11.07 7.29 10.97 7.29 L 10.422 7.29 L 10.422 6.381 C 10.422 6.281 10.34 6.199 10.239 6.199 L 10.056 6.199 L 10.056 5.077 C 10.269 5.002 10.421 4.8 10.421 4.563 C 10.421 4.262 10.176 4.018 9.873 4.018 C 9.634 4.018 9.432 4.17 9.356 4.382 L 9.323 4.471 C 9.317 4.512 9.313 4.637 9.323 4.663 L 9.356 4.746 C 9.411 4.901 9.534 5.024 9.69 5.079 L 9.69 6.201 L 9.508 6.201 C 9.407 6.201 9.325 6.282 9.325 6.383 L 9.325 7.292 L 5.671 7.292 L 5.671 6.383 C 5.671 6.283 5.589 6.201 5.489 6.201 L 5.306 6.201 L 5.306 5.079 C 5.462 5.024 5.585 4.901 5.64 4.746 L 5.678 4.615 Z M 5.122 4.5 C 5.223 4.5 5.172 4.416 5.172 4.516 C 5.172 4.616 5.226 4.612 5.125 4.612 C 5.024 4.612 5.068 4.64 5.068 4.54 C 5.068 4.44 5.021 4.501 5.122 4.501 Z M 9.875 4.535 C 9.976 4.535 9.915 4.462 9.915 4.562 C 9.915 4.662 9.982 4.621 9.881 4.621 C 9.78 4.621 9.817 4.652 9.817 4.552 C 9.817 4.452 9.773 4.535 9.874 4.535 Z M 4.943 6.563 L 5.308 6.563 L 5.308 7.29 L 4.943 7.29 Z M 9.692 6.563 L 10.057 6.563 L 10.057 7.29 L 9.692 7.29 Z M 4.212 7.653 L 10.788 7.653 L 10.788 11.29 L 4.212 11.29 Z"
        fill="#ffffff"
        stroke="#00000000"
        stroke-width="0.19838737"/>
    <path
        id="path_3"
        d="M 5.114 4.557 C 5.114 4.375 6.062 2.206 7.56 4.557 C 8.905 6.667 9.941 4.545 9.875 4.535"
        fill="#00000000"
        stroke="#ffffff"
        stroke-width="0.41055192"
        stroke-linecap="round"
        stroke-linejoin="bevel"/>
    <path
        id="path_11"
        d="M 12.5 0 L 12.5 2.25"
        fill="#00000000"
        stroke="#ffffff"
        stroke-width="0.41055191"/>
    <path
        id="path_12"
        d="M 0 12.5 L 2.25 12.5"
        fill="#00000000"
        stroke="#ffffff"
        stroke-width="0.41055191"/>
</svg>
```

</details>


### Screenshots or Video

<details open>
<summary>Screenshots / Video demonstration</summary>
Attaching a screenshot of the app containing the three images: 

![Screenshot_20250106_191557](https://github.com/user-attachments/assets/432b2995-5da9-456b-b949-d394df064d97)


</details>


### Logs

<details open><summary>Logs</summary>

```console
[Paste your logs here]
```

</details>


### Flutter Doctor output

<details open><summary>Doctor output</summary>

```console
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 3.27.1, on Microsoft Windows [Version 10.0.22631.4602], locale en-IN)
[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[X] Chrome - develop for the web (Cannot find Chrome executable at .\Google\Chrome\Application\chrome.exe)
    ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.
[X] Visual Studio - develop Windows apps
    X Visual Studio not installed; this is necessary to develop Windows apps.
      Download at https://visualstudio.microsoft.com/downloads/.
      Please install the "Desktop development with C++" workload, including all of its default components
[√] Android Studio (version 2024.2)
[√] Connected device (3 available)
[√] Network resources

! Doctor found issues in 2 categories.
```

</details>