- BREAKING CHANGES (see the Migration Guide for a full overview of breaking changes.):
- The default parser has been completely rewritten and the RichText parser has been removed.
useRichText
no longer is necessary (The new parser uses RichText under the hood)customRender
now works for the default parser.
- Adds support for
<audio>
,<video>
,<iframe>
,<svg>
,<ruby>
,<rt>
,<rp>
,<sub>
, and<sup>
- Adds support for over 20 CSS attributes when using the
style
parameter. - Fixes many many issues (see the list at #122)
- The following parameters of
Html
have been removed and should no longer be used (see the migration guide):useRichText
padding
backgroundColor
defaultTextStyle
renderNewlines
customEdgeInsets
customTextStyle
blockSpacing
customTextAlign
linkStyle
imageProperties
showImages
- The default text style now matches the app's Material
TextTheme.bodyText2
(Fixes #18). - Requires Flutter v1.17.0 or greater
- Fixed quite a few issues with
img
- Added a fancy new
style
attribute (this should be used in place of the deprecated styling parameters).
- For a list of pre-release changes, including several BREAKING CHANGES, see release notes for 1.0.0 above.
- Add support for
AssetImage
s using theasset:
prefix (#162).
- Make it so
width=100%
doesn't throw error. Fixes #118. - You can now set width and/or height in
ImageProperties
to negative to ignore thewidth
and/orheight
values from the html. Fixes #97 - The
img
alt
property now renders correctly when the image fails to load and with the correct style. Fixes #96 - Add partial support for
sub
tag. - Add new option:
shrinkToFit
(#148). Fixes #75.
- Add support for
customTextStyle
to block and specialty HTML elements.
- Add
src
to theonImageTap
callback (#93)
- Add
customTextAlign
property (#112) - Use
tryParse
instead ofparse
for image width and height attributes so that%
values are ignored safely. Fixes #98
- Image properties and onImageTap for the richTextParser, plus some fixes (#90)
- Hotfix 1 (June 6, 2019): Fixes #100
- BREAKING:
useRichText
now defaults totrue
- Support for
aside
,bdi
,big
,cite
,data
,ins
,kbd
,mark
,nav
,noscript
,q
,rp
,rt
,ruby
,s
,samp
,strike
,template
,time
,tt
, andvar
added toRichText
parser.
- Fixes extra padding issue (#87)
- Add support for
address
tag inRichText
parser.
- Added onImageError callback
- Added custom textstyle and edgeinsets callback (#72)
- Update dependency versions (#84)
- Fixes #82 and #86
- Fix whitespace issue. (#59)
- Add support for
span
inRichText
parser. (#61) - Adds
linkStyle
attribute. (#70) - Adds tests for
header
,hr
, andi
(#62)
- Fixes
table
error inRichText
parser. (#58)
- Adds support for base64 encoded images
- Adds partial support for deprecated
font
tag.
- Adds an alternate
RichText
parser anduseRichText
parameter. (#37)
- Removes debug prints.
- Adds
typedef
foronLinkTap
function.
- Adds custom tag callback
- Logging no longer shows up in production.
- Fixes issue with text nodes that contain only a space. (#24)
- Fixes typo in README.md from 0.7.0.
- Adds full support for
ul
andol
- Adds check for
img src
before trying to load it. - Adds support for
img alt
attribute.
- Fixed minor typo
- Update README.md and example
- GitHub version 0.6.0 milestone reached
- Adds partial support for
center
and arenderNewlines
property on theHtml
widget.
- Adds support for
acronym
, andbig
.
- Adds
onLinkTap
callback.
- Adds support for
strike
, andtt
.
- Adds support for
bdi
andbdo
- Fixed issue with table rows not lining up correctly (#4)
- Major refactor that makes entire tree a Widget and eliminates the need to distinguish between inline and block elements.
- Fixed #7, #9, #10, and #11.
- Fixed issue with images not loading when inside of
p
tag (#6)
- Adds support for
table
,tbody
,tfoot
,thead
,tr
,td
,th
, andcaption
- Fixed issue where
p
was not rendered with thedefaultTextStyle
.
-
Adds support for
abbr
,address
,article
,aside
,blockquote
,br
,cite
,code
,data
,dd
,del
,dfn
,dl
,dt
,figcaption
,figure
,footer
,header
,hr
,img
,ins
,kbd
,li
,main
,mark
,nav
,noscript
,pre
,q
,rp
,rt
,ruby
,s
,samp
,section
,small
,span
,template
,time
, andvar
-
Adds partial support for
a
,ol
, andul
- Adds support for
img
.
- Fixed
b
to be bold, not italic... - Adds support for
em
, andstrong
- Adds support for a default
TextStyle
- Renamed widget from
HtmlWidget
toHtml
- Adds support for
p
,h1
,h2
,h3
,h4
,h5
, andh6
.
- Adds support for
body
,div
,b
,i
, andu
.