- 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.
useRichTextno longer is necessary (The new parser uses RichText under the hood)customRendernow 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
styleparameter. - Fixes many many issues (see the list at #122)
- The following parameters of
Htmlhave been removed and should no longer be used (see the migration guide):useRichTextpaddingbackgroundColordefaultTextStylerenderNewlinescustomEdgeInsetscustomTextStyleblockSpacingcustomTextAlignlinkStyleimagePropertiesshowImages
- 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
styleattribute (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
AssetImages using theasset:prefix (#162).
- Make it so
width=100%doesn't throw error. Fixes #118. - You can now set width and/or height in
ImagePropertiesto negative to ignore thewidthand/orheightvalues from the html. Fixes #97 - The
imgaltproperty now renders correctly when the image fails to load and with the correct style. Fixes #96 - Add partial support for
subtag. - Add new option:
shrinkToFit(#148). Fixes #75.
- Add support for
customTextStyleto block and specialty HTML elements.
- Add
srcto theonImageTapcallback (#93)
- Add
customTextAlignproperty (#112) - Use
tryParseinstead ofparsefor 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:
useRichTextnow defaults totrue - Support for
aside,bdi,big,cite,data,ins,kbd,mark,nav,noscript,q,rp,rt,ruby,s,samp,strike,template,time,tt, andvaradded toRichTextparser.
- Fixes extra padding issue (#87)
- Add support for
addresstag inRichTextparser.
- 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
spaninRichTextparser. (#61) - Adds
linkStyleattribute. (#70) - Adds tests for
header,hr, andi(#62)
- Fixes
tableerror inRichTextparser. (#58)
- Adds support for base64 encoded images
- Adds partial support for deprecated
fonttag.
- Adds an alternate
RichTextparser anduseRichTextparameter. (#37)
- Removes debug prints.
- Adds
typedefforonLinkTapfunction.
- 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
ulandol
- Adds check for
img srcbefore trying to load it. - Adds support for
img altattribute.
- Fixed minor typo
- Update README.md and example
- GitHub version 0.6.0 milestone reached
- Adds partial support for
centerand arenderNewlinesproperty on theHtmlwidget.
- Adds support for
acronym, andbig.
- Adds
onLinkTapcallback.
- Adds support for
strike, andtt.
- Adds support for
bdiandbdo
- 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
ptag (#6)
- Adds support for
table,tbody,tfoot,thead,tr,td,th, andcaption
- Fixed issue where
pwas 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
bto be bold, not italic... - Adds support for
em, andstrong - Adds support for a default
TextStyle
- Renamed widget from
HtmlWidgettoHtml - Adds support for
p,h1,h2,h3,h4,h5, andh6.
- Adds support for
body,div,b,i, andu.