sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: flutter
Issue: [flutter_svg] providing DefaultSvgTheme doesn't work
Labels: package,p: flutter_svg

_Imported from https://github.com/dnfield/flutter_svg/issues/739_

Original report by @IlyaMax on Jul 27, 2022

https://github.com/IlyaMax/flutter_playground/tree/flutter_svg_issue_default_svg_theme
expected that svg icon is green, actual: that's black

---
Comment by @Handelika on Aug 17, 2022
I also have the same problem. SvgTheme current color not working anymore.

---
Comment by @barisatakanelbasan on Aug 17, 2022
I have the same issue.

---
Comment by @sayyedmuzammil on Oct 6, 2022
yes, it's a common issue, my logo has different sets of colors but it's showing only one color.

---
Comment by @vadimlukutin on Sep 19, 2023
also have this issue, but color is working
Repository: flutter
Issue: [flutter_svg] Flutter SVG Render Issue on web
Labels: package,p: flutter_svg

_Imported from https://github.com/dnfield/flutter_svg/issues/740_

Original report by @stevensalex299 on Jul 28, 2022

We are using the Flutter SVG package to render SVGs throughout our project. The images looks perfectly fine on Flutter version 2.10.5, but on version 3 some of them render badly. There seems to be an issue between the two versions.

![NormalIcon](https://user-images.githubusercontent.com/67330039/181628546-b29eefd7-7be4-41cb-8d12-ea749006886e.png)
![BrokenIcon](https://user-images.githubusercontent.com/67330039/181628564-bc3fd87b-0831-42cf-b6a3-5d41ca3c5587.png)


Source SVG:
![analytics_with_icon](https://user-images.githubusercontent.com/67330039/181636084-21f4911e-d8be-47e6-839a-afb0edb185e5.svg)

---
Comment by @dnfield on Jul 28, 2022
Please include the source SVG for this.

---
Comment by @stevensalex299 on Jul 28, 2022
I added the svg above

---
Comment by @dnfield on Jul 28, 2022
I'm not able to reproduce this on a recent flutter commit and the latest version of flutter_svg. What platform?

---
Comment by @stevensalex299 on Jul 29, 2022
We are building this for Flutter web.

---
Comment by @dnfield on Nov 17, 2022
What rendering backend? Which browser/os?
Repository: flutter
Issue: [flutter_svg] SvgPicture.network fails with Connection refused
Labels: package,p: flutter_svg

_Imported from https://github.com/dnfield/flutter_svg/issues/774_

Original report by @cardexc on Sep 12, 2022

There is an issue when I try to get a lot (60-70) of SVG images via the network. I believe it depends on server restrictions. 


    return SvgPicture.network("svg_file_url_$channelId", color: AppColors.white90, placeholderBuilder: (context) {
      return Center(
        child: ChannelLogoPlaceHolder(widget.channelId),
      );}

Log: 

`Connection refused (OS Error: Connection refused, errno = 61), address = server_url, port = 51223`

Is there any way to catch the error / re-launch SVG file retrieving? 

> Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.0.4, on macOS 12.1 21C52 darwin-arm, locale en-UA)
[!] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1)
    ✗ cmdline-tools component is missing
      Run `path/to/sdkmanager --install "cmdline-tools;latest"`
      See https://developer.android.com/studio/command-line for more details.
    ✗ Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/macos#android-setup for more details.
[✓] Xcode - develop for iOS and macOS (Xcode 13.4.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2021.2)
[✓] IntelliJ IDEA Community Edition (version 2022.1.1)
[✓] Connected device (2 available)
[✓] HTTP Host Availability


flutter_svg: ^1.1.4
Repository: flutter
Issue: [flutter_svg] Allow animation/transition between placeholderBuilder and the SVG
Labels: package,p: flutter_svg

_Imported from https://github.com/dnfield/flutter_svg/issues/796_

Original report by @lille-morille on Oct 22, 2022

Having some sort of animation control for fading etc between the placeholder and SVG would be nice.
Flutter is great for fluid animations and transitions, and simply snapping between two images looks off in many apps.
Following the Material Design Guidelines, loading images should fade between the loading and complete state. [[LINK]](https://m1.material.io/patterns/loading-images.html#)

Please consider my suggestion. I love this project, thank you for a great package! <3

---
Comment by @behnamsattar on Jan 25, 2023
Or maybe even consider adding a [frameBuilder](https://api.flutter.dev/flutter/widgets/Image/frameBuilder.html) property the way it's used for the built-in Image widget.

---
Comment by @jaggernod on Mar 9, 2023
Before v2.0 it was relatively simple to have the crossfade. However, required changing the top level of `SvgPicture` (not the cleanest solution).

In v2.+ `flutter_svg` does not have enough information to handle the animation. 
Now [vector_graphics](https://github.com/dnfield/vector_graphics/issues/193) would need to expose the feature.
Repository: flutter
Issue: [flutter_svg] Transparency issues caused by the latest version
Labels: package,p: flutter_svg

_Imported from https://github.com/dnfield/flutter_svg/issues/812_

Original report by @RonakPustack on Nov 25, 2022

Original Image
![update_star](https://user-images.githubusercontent.com/68676516/203942660-ea711121-48cf-4774-85e4-d993315e9c6e.svg)

Using flutter_svg 0.22.0
![316590502_1126330801392133_5954360089196919729_n](https://user-images.githubusercontent.com/68676516/203942765-8b3064b2-2393-493b-9b3b-e75ff0787faf.jpg)

Using the latest flutter_svg version
![316878913_1300759857366709_2963551458229049682_n](https://user-images.githubusercontent.com/68676516/203942827-6e3e352b-6bd2-4b93-a160-aaf218d6ed0b.jpg)

I see that the latest version imports the svg as it is, which is an improvement but is there a way for me to achieve the same result that 0.22.0 gives without a color or blend mode, because this image is being used over a gradient, and using blend mode requires this image to have some background color, which would overlay the gradient.
Repository: flutter
Issue: [flutter_svg] Compared with the browser, it is found that this svg rendering error
Labels: package,p: flutter_svg

_Imported from https://github.com/dnfield/flutter_svg/issues/813_

Original report by @weaver712 on Nov 26, 2022

![bugly](https://user-images.githubusercontent.com/26682933/204067718-d9ceb20a-9fa5-41bd-be50-d2b1b7b352e6.svg)
Repository: flutter
Issue: [flutter_svg] SVG from string not rendering image from url
Labels: package,p: flutter_svg

_Imported from https://github.com/dnfield/flutter_svg/issues/819_

Original report by @JoakoV3 on Dec 16, 2022

I have these markers in google maps

[![googel maps markers][1]][1]


  [1]: https://i.stack.imgur.com/e1mdt.png

I am generating them from an svg with an `<image>` that has a network image.

### The problem is, the markers image that should be inside is not being displayed. 

Here's the code that I use to generate the marker:

```
import 'package:flutter/material.dart';
import 'package:flutter_svg/svg.dart';
import 'package:google_maps_flutter/google_maps_flutter.dart' show BitmapDescriptor;
import 'dart:ui' as ui;

Future<BitmapDescriptor> getAssetImageMarker(String networkImage) async {
  Size size = const Size(30, 30);
  String svgString = '''
    <svg width="100" height="100" >
      <defs>
        <pattern id="image-pattern" x="0" y="0" width="100" height="100" patternUnits="userSpaceOnUse" >
          <image href="https://images.unsplash.com/photo-1608848461950-0fe51dfc41cb" x="0" y="0" width="100" height="120" />
        </pattern>
      </defs>
      <circle cx="50" cy="50" r="40" stroke="orange" stroke-width="4" fill="url(#image-pattern)" />
    </svg>
''';

  final svgDrawableRoot = await svg.fromSvgString(svgString, 'debug: ${svgString.codeUnits}');

  final ratio = ui.window.devicePixelRatio.ceil();
  final width = size.width.ceil() * ratio;
  final height = size.height.ceil() * ratio;
  final picture = svgDrawableRoot.toPicture(
    size: Size(
      width.toDouble(),
      height.toDouble(),
    ),
  );
  final image = await picture.toImage(width, height);
  final byteData = await image.toByteData(format: ui.ImageByteFormat.png);
  final uInt8List = byteData!.buffer.asUint8List();
  return BitmapDescriptor.fromBytes(uInt8List);
}

```

I don't know what the cause could be. Is this supported in svgFromString?

---
Comment by @Zurigan on Jan 5, 2023
As far as I can work out `<pattern>` is unsupported by flutter_svg, that entire element will be ignored by the svg parser with a `unhandled element pattern;` info message in your debug console.
Repository: flutter
Issue: [flutter_svg] Patterns with objectBoundingBox not rendering correctly
Labels: package,p: flutter_svg

_Imported from https://github.com/dnfield/flutter_svg/issues/820_

Original report by @davidgtu on Dec 19, 2022

I'm using flutter_svg on the latest version (1.1.6) as of writing.

I've been able to render SVGs with this library in the past, but I tried adding SVGs recently and I wasn't able to get it rendering.

I have it added in `pubspec.yaml`

```
 assets:
    - assets/svg/discover_more/
```

and it's generated using `flutter pub run build_runner build`.

when I try to render it, I see that it's returning the correct string, like `"assets/svg/discover_more/discover_more_articles.svg"`

However it just renders a white box:

[![enter image description here][1]][1]

and I'm using it like this:

```dart
SvgPicture.asset(image) // image = assets/svg/discover_more/discover_more_articles.svg
```

I've tried a combination of BoxFits and widths as well and it doesn't show anything besides that.

I remember reading somewhere in the library's repo that it doesn't handle SVGs with `<image>` tags in them.

For reference, my new SVGs look something like this with a base64 image:

```svg
<svg width="1410" height="1069" viewBox="0 0 1410 1069" fill="none" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<rect x="0.196289" y="0.604492" width="1408.96" height="1067.84" fill="url(#pattern0)"/>
<defs>
<pattern id="pattern0" patternContentUnits="objectBoundingBox" width="1" height="1">
<use xlink:href="#image0_1181_25" transform="scale(0.00190857 0.00251825)"/>
</pattern>
<image id="image0_1181_25" width="541" height="404" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAh0AAAGUCAYAAACRN5BqAAAMP2lDQ1BJQ0MgUHJvZmlsZQAASImVVwdYU8kWnltSIbQAAlJCb4KIlABSQmihdwRRCUmAUEIMBBV7WVRw7aICNnRVRLHT7IidRbFhXyyoKOtiwa68SQFd95XvzffNnf/+c+Y/Z86dufcOAOonuGJxLqoBQJ6oUBIb7M8Ym5zCID0BZKABUGAArLm8AjErOjocwDLY/r28uwEQWXvVQab1z/7/WjT5ggIeAEg0xOn8Al4exAcBwKt4YkkhAEQZbz65UCzDsAJtCQwQ4oUynKnAVTKcrsB75TbxsWyIWwEgq3K5kkwA1C5DnlHEy4Qaan0QO4n4QhEA6gyIffLy8vkQp0FsA23EEMv0mek/6GT+TTN9SJPLzRzCirnICzlAWCDO5U79P9Pxv0ternTQhxWsqlmSkFjZnGHebubkh8mwKsS9ovTIKIi1IP4g5MvtIUapWdKQBIU9asgrYMOcAV2InfjcgDCIDSEOEuVGhiv59AxhEAdiuELQKcJCTjzEehAvFBQExiltNknyY5W+0PoMCZul5M9x...."/>
</defs>
</svg>
```


  [1]: https://i.stack.imgur.com/97htl.png

---
Comment by @GSPrakashNaidu2 on Jan 30, 2023
@davidgtu try to place the def element before the rect tag and check..

---
Comment by @p29hieu on May 9, 2023
The same problem. I'm using the SvgPicture.network() instance, and my url is [image](https://meterial-chef-ai.s3.ap-southeast-1.amazonaws.com/setting/allergicFood/allergicFood/Th%E1%BB%B1c+ph%E1%BA%A9m+d%E1%BB%8B+%E1%BB%A9ng+-+Th%E1%BB%8Bt+b%C3%B2.svg). When I copy this url to browser and check the response, I found the `<image />` tag in `svg` body. Maybe this is the problem.
Repository: flutter
Issue: [flutter_svg] SVG anti-aliasing options guidance?
Labels: package,p: flutter_svg

_Imported from https://github.com/dnfield/flutter_svg/issues/823_

Original report by @workerbee22 on Jan 7, 2023

So I'm building for Android TV / Google TV where screens are physically large, but resolutions can be quite low. As a result I have noticed many of my SVG images are missing any anti-aliasing and so have the _saw-tooth_ pixelated edges look. There seems to be no clear option in `flutter_svg` to enable anti-aliasing.

The [flutter_svg package](https://pub.dev/documentation/flutter_svg/latest/flutter_svg/DrawablePaint-class.html) does support `DrawablePaint` class which provides an `isAntiAlias` property, but it is immutable. 

Is there any guidance/recommendations on how to use this? I realise this would be costly, but if I must choose between grainy looking UI vs. cost, then that is a cost I want to incur.

---
Comment by @workerbee22 on Jan 7, 2023
**UPDATE:** I did find in `SvgPicture` the `clipBehavior` property and set to `Clip.antiAlias` instead of the default `Clip.hardEdge` and there was no difference. I then moved it up to `Clip.antiAliasWithSaveLayer` and still no difference.

---
Comment by @jonahwilliams on Jan 22, 2023
generally speaking, everything that flutter draws is already anti aliased. Do you have some examples of SVGs that look aliased or perhaps some screenshots of the particular artifacts you are seeing?

---
Comment by @mrwonko on Feb 24, 2023
I ran into a similar issue. I did some tests to narrow it down, here's the file I ended up with:
![repro](https://user-images.githubusercontent.com/220725/221192315-24ea1374-b9c2-4cd9-bb4f-2f375e54fd80.svg)
The left half of the outer circle is a curve with a border, which renders nicely.
The right half is a real circle, which also renders nicely.
Inside is a curve in the shape of a border, but which is filled, not using a border. Visually, it's roughly of the same thickness as the borders, but it doesn't render as nicely. It still receives some anti-aliasing, but it looks worse, and there's a noticeable gap:
![Screenshot 2023-02-24 at 14 28 13](https://user-images.githubusercontent.com/220725/221192263-a97ff850-8b6e-4131-b88c-3939a093422a.png)
So there appears to be an issue rendering slim shapes, but maybe that's just "doing it wrong"...
Repository: flutter
Issue: [flutter_svg] Issues building web when SvgPicture.file is present
Labels: package,p: flutter_svg

_Imported from https://github.com/dnfield/flutter_svg/issues/834_

Original report by @ryzizub on Jan 29, 2023

Im getting error with latest version of this package on when building `flutter build web`
```
Target dart2js failed: Exception: Warning: The 'dart2js' entrypoint script is deprecated, please use 'dart compile js' instead.
```

Flutter: 3.3.10
Dart: 2.18.6
Repository: flutter
Issue: [flutter_svg] Resizing svgs
Labels: package,p: flutter_svg

_Imported from https://github.com/dnfield/flutter_svg/issues/842_

Original report by @CodeDoctorDE on Feb 3, 2023

After upgrading to 2.0, the resize option is gone.
I was using
```dart
final picture = svgRoot!.toPicture(size: size);
canvas.drawPicture(picture);
```
I'm using the flutter canvas
Repository: flutter
Issue: [flutter_svg] Simple svg not rendered properly on mobile browsers
Labels: package,p: flutter_svg

_Imported from https://github.com/dnfield/flutter_svg/issues/845_

Original report by @ferraridamiano on Feb 8, 2023

I just added `flutter_svg 2.0.0+1` to my app with the optimization of `vector_graphics_compiler`. The icons are properly rendered on all the platform (even on the Web) but not on mobile browsers (I tried chrome for android and firefox for android). Maybe it is an issue with the flutter html renderer.

<details>
<summary>Example images (on the right the expected result</summary>

![-2147483648_-211234](https://user-images.githubusercontent.com/34270884/217465699-1b6a1226-3d81-404f-8f4a-2f43e3071b2c.jpg) ![-2147483648_-211236](https://user-images.githubusercontent.com/34270884/217465709-8f07056c-490c-4340-b790-9313ce41e197.jpg)

</details>

You can find all the icons [here](https://github.com/ferraridamiano/ConverterNOW/tree/master/assets/property_icons)
And you can see the web app with the issue [here](https://converter-now.web.app)


---
Comment by @dnfield on Feb 9, 2023
The more I look at bugs like this the more I think we should just be injecting the SVG if we're on the HTML backend. But it always turns out to be harder than I think it should be. I'm going to see if we can do it again.
Repository: flutter
Issue: [flutter_svg] BoxFit.cover does not work
Labels: package,p: flutter_svg

_Imported from https://github.com/dnfield/flutter_svg/issues/867_

Original report by @drmilde on Feb 19, 2023

In 1.16 BoxFit.cover worked ok, now a small white border on the left and right side is shown.



---
Comment by @dnfield on Feb 21, 2023
Please share a reproduction.
Repository: flutter
Issue: [flutter_svg] svg <marker> not work?
Labels: package,p: flutter_svg

_Imported from https://github.com/dnfield/flutter_svg/issues/871_

Original report by @jzhgithub18 on Feb 27, 2023



---
Comment by @jzhgithub18 on Feb 27, 2023
my svg:
`<svg viewBox="0 0 720 1280"
  xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
  <defs>
     <marker id="/rc/defs/arrowStyle" zorder="1" markerWidth="5" markerHeight="5" markerUnits="strokeWidth" refX="50" refY="50" viewBox="0 0 100 100" orient="auto">
            <path id="/rc/defs/arrowStyle/1" zorder="1" d="M100 50L0 90L30 50L0 10L100 50Z"/>
     </marker>
  </defs>
  <rect xmlns="http://www.w3.org/2000/svg" width="720" height="1280" fill="#FF9900" rx="4" ry="4"/>
  <line id="/1/1677122352_1@aragorn@令狐冲" zorder="1" stroke="black" stroke-width="3" x1="320" y1="657.60004" x2="431.29999" y2="1063.4" marker-end="url(#/rc/defs/arrowStyle)"/>
  <path id="/rc/1" zorder="1" d="M100 50L0 90L30 50L0 10L100 50Z"/>
  <line x1="0" y1="0" x2="250" y2="50" stroke="#000" stroke-width="8" marker-end="url(#/rc/defs/arrowStyle)" />
  <text x="60" y="15" style='font-family:sans-serif;font-size: 14pt;
    stroke:none; fill: black;
  '>令狐冲</text>
</svg>`
**expect：**
![image](https://user-images.githubusercontent.com/112080579/221516916-477cfaf7-34c6-49b1-be5f-0e13b29db448.png)

present：
![image](https://user-images.githubusercontent.com/112080579/221518199-e0909241-b0c7-4585-8b58-cc7d3409296d.png)


---
Comment by @dnfield on Feb 27, 2023
It is not implemented in this library. I'm open to it but don't get this request all that often.

---
Comment by @Zeebzog on Oct 5, 2023
Hi, The library is great, but I also need marker-end implemented. The below fails to draw the arrow head as well.


`<svg width="2788" height="1232" viewBox="0 -1232 2788 1232" xmlns="http://www.w3.org/2000/svg"><marker id="arrow" refX="1" refY="5" markerWidth="4" markerHeight="4" viewBox="0 0 10 10" orient="auto" ><path d="M 0 0 L 10 5 L 0 10 z" fill="black" /></marker><line x1="104" y1="-225" x2="164" y2="-225" stroke="black" stroke-width="2" marker-end="url(#arrow)" /></svg>`

Thank you.
Repository: flutter
Issue: [flutter_svg] Support objectBoundingBox units in patterns
Labels: package,P3,p: flutter_svg

_Imported from https://github.com/dnfield/flutter_svg/issues/882_

Original report by @bharat8 on Mar 14, 2023

Svg is not rendering properly. Always gives an error like :-

`Failed to find definition for url(#pattern0)`

Have tried moving up the <defs> at the top but still no luck. Don't know if doing something wrong as i have little experience with svg's.

Here is the svg file i am trying to render

[Svg File](https://gist.github.com/bharat8/19ba7975dcd6c5614d48fee7fb3b8d6b?short_path=f8c067c)

Any help will be much appreciated. Thank you!

---
Comment by @dnfield on Mar 14, 2023
I believe the problem is it's using `objectBoundingBox` for the pattern units, which isn't yet supported.

---
Comment by @dnfield on Mar 14, 2023
Supporting that is on my list of things to do but it's not super high priority at the moment and I'm not sure when I'll get to it.

---
Comment by @Joseph-Nathan on May 20, 2023
@dnfield  is there way to fix this on my own ?
Repository: flutter
Issue: [flutter_svg] Stroke opacity not applied
Labels: package,P3,p: flutter_svg

_Imported from https://github.com/dnfield/flutter_svg/issues/891_

Original report by @Maatteogekko on Mar 17, 2023

Take this svg as an example
```svg
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
  <path fill="#293540" stroke="#293540" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"
    d="m19 21-7-5-7 5V5c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2v16Z" />
</svg>
```

I am using the color mapper API to remap colors like this:
```dart
class _ColorMapper implements ColorMapper {
  const _ColorMapper({
    required this.baseColor,
  });

  static const _rawBaseColor = Color(0xFF293540);

  final Color baseColor;

  @override
  Color substitute(String? id, String elementName, String attributeName, Color color) {
    if (color == _rawBaseColor) return baseColor;

    return color;
  }
}

// ---

SvgPicture(
  SvgStringLoader(
    icon,
    colorMapper: _ColorMapper(
      baseColor: iconColor,
    ),
  ),
);
```

If I use a color with opacity != 1, let's say `iconColor = Color(0x802260DD)` as the base color, only the fill gets the opacity applied; the stroke remains fully opaque.

Maybe related to https://github.com/dnfield/flutter_svg/issues/617

---
Comment by @dnfield on Mar 17, 2023
Yeah, there's a bug here for sure. Taking a look.

---
Comment by @dnfield on Mar 17, 2023
Ok. So I can definitely fix the whole "stroke opacity is getting ignored" part, but  be aware that strokes and fills get composited individually and the opacity will be multiplicative - so your case will be something like this SVG:

```svg
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
  <path fill="#293540" stroke="#293540" fill-opacity=".5" stroke-opacity=".5" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"
    d="m19 21-7-5-7 5V5c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2v16Z" />
</svg>
```

Which will not look like a single uniform color.

---
Comment by @Maatteogekko on Mar 18, 2023
You're right. To get a uniform color I tried with this:
```svg
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
  <path fill="#293540" stroke="#293540" opacity=".5" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"
    d="m19 21-7-5-7 5V5c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2v16Z" />
</svg>
```
But it still doesn't render correctly. I guess it's the same problem?

---
Comment by @dnfield on Mar 19, 2023
If you want it uniform just remove the stroke attribute(s)

---
Comment by @devmaslove on Oct 18, 2023
I have the same problem. In svg file: stroke="currentColor"
If I set currentColor with opacity - 
```dart
theme: SvgTheme(
                currentColor: Colors.white.withOpacity(0.5),
              ),
``` 
opacity is ignored
Repository: flutter
Issue: [flutter_svg] Why the ! operator on message in provideSvg?
Labels: package,P3,p: flutter_svg

_Imported from https://github.com/dnfield/flutter_svg/issues/893_

Original report by @Albert221 on Mar 20, 2023

Hi!

I created my own `SvgNetworkLoader` extending it. In overriden `prepareMessage` I return `null` on some network failures, as the return type was `Future<Uint8List?>`.

But looks like returning null is illegal here, because in `loaders.dart:361` the library uses `!` on it:

```dart
  String provideSvg(Uint8List? message) => utf8.decode(message!);
```

Which results in an unhandled exception. I propose to either change return type of `prepareMessage` or handle nulls there.

---
Comment by @dnfield on Mar 20, 2023
Agreed this is a problem. Probably related to #250