![[Flutter]flutter_svgにてEXCEPTION CAUGHT BY SVG](https://www.yukiiworks.com/wp-content/uploads/2020/08/flutter.png)
はじめに
Flutterにてflutter_svgにてSVG画像の表示した際に警告が出たときの話。
出た警告は以下のよう。
══╡ EXCEPTION CAUGHT BY SVG╞═══
The following UnimplementedError was thrown in parseSvgElement:
The element is not implemented in this library.Style elements are not supported by this library and the requested SVG may not render as intended.
If possible, ensure the SVG uses inline styles and/or attributes (which are supported), or use a preprocessing utility such as svgcleaner to inline the styles for you.
解決方法
エラーを読んでみると、このライブラリではSVG内でのstyleタグに未対応らしい。
確かにSVG画像が表示できるがstyleで指定している部分は反映されていない。
styleで指定されていたcssを直接設定したら警告はなくなり、正しく表示もされた。
以上です。
![[Flutter]ListViewの区切り線をつけたときにできる余白を消す方法](https://www.yukiiworks.com/wp-content/uploads/2020/08/flutter-300x144.png)
![[Swift]TableViewの区切り線の余白を調整する](https://www.yukiiworks.com/wp-content/uploads/2019/04/swift-150x150.png)
![[Xcode]error: unable to parse contents of file list ‘<project path>/Pods/Target Support Files/Pods-XXX/Pods-XXX-frameworks-Debug-input-files.xcfilelist’でビルドエラーの解消方法](https://www.yukiiworks.com/wp-content/uploads/2019/09/Xcode-150x150.png)
![[Laravel][mailtrap]Expected response code 354 but got code ''550'', with message ''550 5.7.0 Requested action not taken: too many emails per second ''エラーについて](https://www.yukiiworks.com/wp-content/uploads/2019/05/laravel-150x150.png)
![[Node.js]AWS Lambda上で日本現在時刻を取得する](https://www.yukiiworks.com/wp-content/uploads/2020/04/lambda30-150x150.png)
![[Flutter]chopper_generator使用時にbuild_runnerのビルドが完了しない問題の解消法](https://www.yukiiworks.com/wp-content/uploads/2020/08/flutter-150x150.png)

![[Docker]起動済みのMySQLデータを永続化させる](https://www.yukiiworks.com/wp-content/uploads/2019/08/docker-logo-2-150x150.png)
