Skip to content

Commit 765e101

Browse files
committed
Add support for address in RichText parser
1 parent 7fa8688 commit 765e101

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## [0.9.8] - May 14, 2019:
2+
3+
* Add support for `address` tag in `RichText` parser.
4+
15
## [0.9.7] - May 13, 2019:
26

37
* Added onImageError callback

lib/html_parser.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ class HtmlRichTextParser extends StatelessWidget {
176176
static const _supportedStyleElements = [
177177
"b",
178178
"i",
179+
"address",
179180
"em",
180181
"strong",
181182
"code",
@@ -446,6 +447,7 @@ class HtmlRichTextParser extends StatelessWidget {
446447
childStyle.merge(TextStyle(fontWeight: FontWeight.bold));
447448
break;
448449
case "i":
450+
case "address":
449451
case "em":
450452
childStyle =
451453
childStyle.merge(TextStyle(fontStyle: FontStyle.italic));

0 commit comments

Comments
 (0)