Skip to content

Commit 349b8b0

Browse files
committed
Fixed: Unreliable detection of SVG images
Fix #2053
1 parent 7e09bdf commit 349b8b0

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
* Fixed: cannot get height and width for page ([#1960](https://github.com/flet-dev/flet/issues/1960)).
1717
* Fixed: Put it the right version of flet ([#1997](https://github.com/flet-dev/flet/issues/1997)).
1818
* Fixed: `Chip.selected` property type changed to bool ([#2048](https://github.com/flet-dev/flet/issues/2048)).
19+
* Fixed: Unreliable detection of SVG images ([#2053](https://github.com/flet-dev/flet/issues/2053)).
1920

2021
# 0.11.0
2122

package/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
* Fixed: cannot get height and width for page ([#1960](https://github.com/flet-dev/flet/issues/1960)).
1515
* Fixed: Put it the right version of flet ([#1997](https://github.com/flet-dev/flet/issues/1997)).
1616
* Fixed: `Chip.selected` property type changed to bool ([#2048](https://github.com/flet-dev/flet/issues/2048)).
17+
* Fixed: Unreliable detection of SVG images ([#2053](https://github.com/flet-dev/flet/issues/2053)).
1718

1819
# 0.11.0
1920

package/lib/src/controls/image.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class ImageControl extends StatelessWidget {
2323
final Control control;
2424
final bool parentDisabled;
2525

26-
static const String svgTag = "<svg";
26+
static const String svgTag = " xmlns=\"http://www.w3.org/2000/svg\"";
2727

2828
const ImageControl(
2929
{Key? key,

0 commit comments

Comments
 (0)