8000 Fix issue with flutter_html_svg.dart · Sub6Resources/flutter_html@76c61ae · GitHub
[go: up one dir, main page]

Skip to content

Commit 76c61ae

Browse files
committed
Fix issue with flutter_html_svg.dart
1 parent 9a04acd commit 76c61ae

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,4 +154,6 @@ modules.xml
154154

155155
packages/**/pubspec_overrides.yaml
156156
./pubspec_overrides.yaml
157-
/example/pubspec_overrides.yaml
157+
/example/pubspec_overrides.yaml
158+
159+
coverage/

packages/flutter_html_svg/lib/flutter_html_svg.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ class SvgHtmlExtension extends Extension {
178178
final data = dataUri?.namedGroup('data');
179179
if (data == null) return const SizedBox(height: 0, width: 0);
180180

181-
if (dataUri?.namedGroup('encoding') == ';base64') {
181+
if (dataUri?.namedGroup('encoding') == 'base64') {
182182
return SvgPicture.memory(
183183
base64.decode(data.trim()),
184184
width: imageStyle.width?.value,

0 commit comments

Comments
 (0)
0