flutter_html
A Flutter widget for rendering static HTML and CSS as Flutter widgets.
3.0.0
1000K downloads/mo
#52 most downloaded on pub.dev
Sub6Resources/flutter_html
What this package is like to depend on
Last release 1 years ago
11 Mar 2025
Ships unpredictably
gaps range from 9 days to 1.8 years
Nearly every release is documented
notes for 53 of 55 stable releases
Nothing withdrawn
no release was ever pulled
8 years old
66 releases · first in 2018
0 releases in the last 12 months
see the full history below
Release timeline
66 releases · Aug 2018 to Mar 2025Releases
latest 60 of 66-
3.0.011 Mar 2025Release notes
Open source →What's Changed
- chore: Update upper sdk constraint for external packages to Dart 4.0.0 by @Sub6Resources in #1302
- Update flutter math fork version by @zhourengui in #1304
- fix: Better support for intrinsics, table, vertical-align, and display by @Sub6Resources in #1306
- Using disc as default list style if the specified one doesn't exist by @GabrielAraujo in #1390
- update readme for subpackages for migration from CustomRender to HtmlExtension by @ndusart in #1344
- Feature/expose image element by @kaiquegazola in #1336
- Add srcdoc check when building IframeWidget by @swiftymf in #1355
- fix: enable JavaScript in iframe by @DocMarty84 in #1421
- Resolve: [BUG]':hover' selector of type PseudoClassSelector is not implemented by @DanilKarasev in #1423
- fit: make a href style overridable by @EArminjon in #1431
- fix-html-inside-data-table by @EArminjon in #1460
- fix: Update dependency versions, and fix some Table issues by @Sub6Resources in #1464
- chore: Switch from CircleCI to Github Actions by @Sub6Resources in #1465
- Fix CI by @Sub6Resources in #1466
- chore: Update README with new CI badge by @Sub6Resources in #1467
- fix: fixed regression in list marker positioning by @Sub6Resources in #1468
- Bug | Illegal RegExp in Safari in 3.0.0-beta.1 and beta.2 by @nambiarAswathi in #1444
New Contributors
- @zhourengui made their first contribution in #1304
- @GabrielAraujo made their first contribution in #1390
- @ndusart made their first contribution in #1344
- @swiftymf made their first contribution in #1355
- @DanilKarasev made their first contribution in #1423
- @EArminjon made their first contribution in #1431
- @nambiarAswathi made their first contribution in #1444
Full Changelog: flutter_html-v3.0.0-beta.2...v3.0.0
-
3.0.0-beta.231 May 2023 pre-releaseRelease notes
Open source →What's Changed
- Fix image source matcher tests so they actually run correctly by @Sub6Resources in #1086
- Feature/add font family fallback by @kaiquegazola in #1079
- Fix issues brought up by pub.dev score analyzer by @Sub6Resources in #1088
- Support inferred mrow for msqrt. by @RyosukeFukatani in #1108
- Add support for auto horizontal margins by @zbarbuto in #879
- New CSSBoxWidget and lots of bug fixes by @Sub6Resources in #1135
- Add basic melos support by @Sub6Resources in #1147
- Fix analysis and code format issues by @Sub6Resources in #1148
- Release Version 3.0.0-alpha.6 by @Sub6Resources in #1149
- flutter_html_math: escape braces by @fukatani in #1163
- feat: Support mtable, mtd, mtr for draw matrix. by @fukatani in #1164
- Fix Lists and upgrade List support to CSS3 by @Sub6Resources in #1161
- fix: Fix issue with font scaling introduced in 3.0.0-alpha.6 by @Sub6Resources in #1173
- feat: Support mfenced. by @fukatani in #1174
- feat: Support mmultiscripts. by @fukatani in #1175
- fix SelectableHtml not rebuild when data change by @docaohuynh in #1111
- Correct margin collapse by @arjanmels in #1237
- Adding tests for SVG and fixing height/width bug by @jlyonsmith in #1202
- Fix missing headers parameter by @ndelanou in #1203
- Improve video by @arjanmels in #1236
- Fix: Aspect ratio exception when height is 0 by @ib-8 in #1222
- Migrate
CustomRendertoHtmlExtensionby @Sub6Resources in #1176 - feat: Add WrapperExtension helper by @Sub6Resources in #1264
- fix: a tag should not style as link if href is not provided by @Sub6Resources in #1265
- feat: support vertical-align in inline styles by @Sub6Resources in #1266
- fix: Cleaned up whitespace processing and added whitespace tests by @Sub6Resources in #1267
- Use proper
<figure>stylesheet by @Sub6Resources in #1269 - Corrected accessibility text scaling by @arjanmels in #1259
- fix: improve API for ExtensionContext and export marker.dart by @Sub6Resources in #1273
- Added "display: Display.block" to table by @arjanmels in #1278
- fix: start list items on a new line by @nico-famedly in #1281
- feat: Update CssBoxWidget to handle rtl marker boxes by @Sub6Resources in #1270
- Mark Summary and Details as block items by @arjanmels in #1276
New Contributors
- @RyosukeFukatani made their first contribution in #1108
- @fukatani made their first contribution in #1163
- @docaohuynh made their first contribution in #1111
- @jlyonsmith made their first contribution in #1202
- @ndelanou made their first contribution in #1203
- @ib-8 made their first contribution in #1222
- @nico-famedly made their first contribution in #1281
Full Changelog: 3.0.0-alpha.5...flutter_html-v3.0.0-beta.2
-
3.0.0-beta.113 May 2023 pre-releaseRelease notes
Open source →- FIX: Aspect ratio exception when height is 0 (#1222). (ed75f8fe)
- FIX: Fix issue with font scaling introduced in 3.0.0-alpha.6 (#1173). (c75e0dfb)
- FIX: Fix various issues with list rendering. (520ff3c3)
- FIX: Apply margins to properly. (7581ea79)
- FIX: Use enum instead of const int internally in length.dart. (9dc7f08c)
- FIX: Change CSSBoxWidget to CssBoxWidget. (a62449a7)
- FEAT: Support mmultiscripts. (#1175). (a999a300)
- FEAT: Support mfenced. (#1174). (9ca23084)
- FEAT: Upgrade list-style-type to CSS3. (deb726ae)
- FEAT: Support mtable, mtd, mtr for draw matrix. (#1164). (e99e2cc1)
-
3.0.0-alpha.630 Sep 2022 pre-releaseRelease notes
Open source →- FIX #731 Resolve newline
<br>issue - FIX Align the baseline of inline content with the baseline of its parent flow, even if it has padding or borders
- FIX Improved fontSize inheritance when cascading styles
- FIX
automargins now work for anyDisplay.BLOCKelement. - FIX
autowidth and height is now the default, rather thannull - FIX New CSSBoxWidget that handles calculations of child sizes for a more accurate HTML/CSS layout
- BREAKING New
Margin,Height, andWidthclasses that allowem,rem,px,auto, and%values to be given - FEAT Negative margins are now allowed
- FIX Updated default
pandh1-6styles to useemfor better font scaling - BREAKING Package now requires Dart sdk >= Dart 2.17
- FIX: Apply margins to <table> properly. (7581ea79)
- FIX: Use enum instead of const int internally in length.dart. (9dc7f08c)
- FIX: Change CSSBoxWidget to CssBoxWidget. (a62449a7)
- FIX: fix textShadow color declaration handler. (77ffe7cb)
- FIX: ol use default style. (1c2412a2)
- FIX: Crash when a tr tag includes text node. (ba8301c9)
- FEAT: exposes fontFamilyFallback parameter. (1d65aafd)
- FIX #731 Resolve newline
-
3.0.0-alpha.509 Jun 2022 pre-releaseRelease notes
Open source →- Fixed hot reloads, thanks @arjenmels
- Fixed link taps not working
- Improvements in README
-
3.0.0-alpha.314 Apr 2022 pre-releaseRelease notes
Open source →- Fixed styling not being applied to list item markers
- [video] Fixed crash when iframe or video tags used unsupported/incorrect height or width
-
3.0.0-alpha.205 Jan 2022 pre-releaseRelease notes
Open source →- BREAKING Full modularization using split packages; see our upgrade guide or use flutter_html_all
-
3.0.0-alpha.121 Dec 2021 pre-releaseRelease notes
Open source →- BREAKING Reworked custom renders pending full modularation in 3.0.0
- Extended support custom render when using SelectableHtml
- Updated flutter_svg to 1.0.0
- Support flutter_webview 3.x
- Automatic disposal of video and audio controllers
- Fix block elements bottom spacing in table cells
-
2.2.109 Dec 2021Release notes
Open source →- Allow styling on ruby tags
- Allow width/height/alignment styling on table/tr/td tags
- Prevent images causing rebuilding and leaking memory
- Fixes display of list items on iOS with font weights below 400
- Prevent crash on negative margins or paddings
-
2.2.029 Nov 2021Release notes
Open source →- Explicitly declare multiplatform support
- Extended and fixed list-style (marker) support
- Basic support for height/width css properties
- Support changing scroll physics of SelectableText.rich
- Support text transform css property
- Bumped minimum flutter_math_fork version for Flutter 2.5 compatibility
- Fix styling of iframes
- Fix nested font tag application
- Fix whitespace rendering between list items
- Prevent crash on empty <table> tag and tables with both colspan/rowspan
- Prevent crash on use of negative margins in css
-
2.1.507 Oct 2021Release notes
Open source →- Ignore unsupported custom style selectors when using fromCss
- Fix SVG tag usage inside tables
- Properly fix regression in usage of line breaks
-
2.1.403 Oct 2021 -
2.1.301 Oct 2021Release notes
Open source →- Update minimum versions of dependencies for Flutter 2.5 compatibility
- Extended and fixed support for css shadow
- Fix block tags with explicit whitespace from being stripped
-
2.1.202 Sep 2021Release notes
Open source →- Allow setting selectionControls with SelectableHtml
- Fix onLinkTap not working with SelectableHtml
- Don't crash when parsing unsupported :hover
- Prevent endless loading when using animated images
-
2.1.128 Jul 2021 -
2.1.1-preview.027 Jul 2021 pre-releaseRelease notes
Open source →- Improves hr tag support
- Fixes a leading whitespace issue
- Fixes some crashes with CSS parsing
-
2.1.004 Jun 2021Release notes
Open source →- SelectableHtml widget (supporting a subset of tags) which allow text selection
- Fixed shrinkWrap to actually shrink the horizontal space
- Support style tags to apply styling from inline css
- Support applying styles from Flutter themes
- Mouse hover on links when using Flutter Web
- Allow custom anchor link tap implementations
- Support additional list styling options
- Fix several minor whitespace issues in text flow
- Fixed specific colspan/rowspan usages in tables
- Fixed whitespace issues around images
- Swallow duplicate ids to prevent crashing the widget
- Fixes crashing tap detection when using both link and image taps
- Updates external dependencies
- Raised minimum Flutter version to 2.2.0
-
2.0.011 May 2021 -
2.0.0-nullsafety.129 Apr 2021 pre-releaseRelease notes
Open source →- Support basic MathML
- Support inner links
- Supply full context tree to custom render
- Include or exclude specific tags via
tagsListparameter - Fixed lists not rendering correctly
- Fixes for colspans in tables
- Fixed various exceptions when using inline styles
- Fixed text decoration not cascading between parent and child
- [BREAKING] support whitelisting tags
- See the README for details on how to migrate
blacklistedElements(deprecated) totagsList
- See the README for details on how to migrate
- Fixed
failed assertionerror when tap-scrolling on any link - Updated dependencies
-
2.0.0-nullsafety.006 Mar 2021 pre-releaseRelease notes
Open source →- Nullsafety support
- Official Flutter Web support
- New features & fixes for lists:
- Support start attribute (e.g.
start="5";) - Support RTL direction
- Support setting padding - you can remove the starting padding if you choose
- Fixed unknown character box on iOS when font-weight is below w400
- Support start attribute (e.g.
- Upgraded link functions to provide more granular control
- Fixed errors in text-decoration parsing
- Fixed
<audio>on iOS ("_duration called on null" exception) - Updated dependencies
-
1.3.022 Feb 2021Release notes
Open source →- New image loading API
- Image loading with request headers, from relative paths and custom loading widget
- SVG image support from network or local assets
- Support for
<details>/<summary>tags - Allow returning spans from custom tag renders
- Inline font styling
- Content-based table column sizing
- Respect iframe sandbox attribute
- Fixed text flow and styling when using tags inside
<a>links - Fixed issue where
shrinkWrapproperty would not constrain the widget to take up the space it needs- See the Notes for an example usage with
shrinkWrap
- See the Notes for an example usage with
- Fixed issue where iframes would not update when their
srcs changed in the HTML data - Updated dependencies for Flutter 1.26+
-
1.2.015 Jan 2021Release notes
Open source →- Support irregular table sizes
- Allow for returning
nullfrom a customRender function to disable the widget
-
1.1.122 Nov 2020 -
1.0.208 Aug 2020 -
1.0.011 May 2020Nothing published for this version
-
1.0.0-pre.127 Dec 2019 pre-releaseRelease notes
Open source →- For a list of pre-release changes, including several BREAKING CHANGES, see release notes for 1.0.0 above.
-
0.11.114 Dec 2019 -
0.11.010 Sep 2019Release notes
Open source →- 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.
- Make it so
-
0.10.422 Jun 2019 -
0.10.320 Jun 2019 -
0.10.220 Jun 2019 -
0.10.121 May 2019 -
0.10.1+hotfix.107 Jun 2019Nothing published for this version
-
0.10.019 May 2019Release notes
Open source →- 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.
- BREAKING:
-
0.9.918 May 2019 -
0.9.815 May 2019 -
0.9.713 May 2019 -
0.9.612 Mar 2019 -
0.9.512 Mar 2019 -
0.9.405 Feb 2019 -
0.9.301 Feb 2019 -
0.9.201 Feb 2019 -
0.9.101 Feb 2019Release notes
Open source → -
0.9.001 Feb 2019 -
0.8.202 Nov 2018 -
0.8.119 Oct 2018 -
0.8.019 Oct 2018 -
0.7.112 Sep 2018Release notes
Open source →- Fixes issue with text nodes that contain only a space. (#24)
- Fixes typo in README.md from 0.7.0.
-
0.7.011 Sep 2018 -
0.6.206 Sep 2018Release notes
Open source →- Adds check for
img srcbefore trying to load it. - Adds support for
img altattribute.
- Adds check for
-
0.6.105 Sep 2018 -
0.6.005 Sep 2018 -
0.5.605 Sep 2018Release notes
Open source →- Adds partial support for
centerand arenderNewlinesproperty on theHtmlwidget.
- Adds partial support for
-
0.5.504 Sep 2018 -
0.5.401 Sep 2018 -
0.5.326 Aug 2018 -
0.5.226 Aug 2018 -
0.5.125 Aug 2018 -
0.5.024 Aug 2018 -
0.4.115 Aug 2018