flutter_widget_from_html

Flutter package to render html as widgets that supports hyperlink, image, audio, video, iframe and many other tags.

MIT License

Stars
625
Committers
16

Bot releases are visible (Hide)

flutter_widget_from_html - v0.10.0

Published by daohoangson over 1 year ago

  • Add support for Flutter 3.7 (#861)
  • Update dependency flutter_svg to v2 (#862)

fc651f13402e095126f11a100f26655c8036e730 APKs:

Web build has been deployed to https://example-5dc6tu8g3-flutter-widget-from-html.vercel.app. Quick links:

flutter_widget_from_html - v0.9.1

Published by daohoangson almost 2 years ago

  • Adjust text-decoration-line cascading logic (#843)
  • Try catch possible errors during table layout (#846)
  • Add support for list-style-type: none (#847)
  • Add support for src attribute in VIDEO tag (#848)
  • Adjust sizing logic for IMG tag (#854)
  • Redistribute table column width to avoid overflow (#856)

a4ab581af2add25ad9d462ab68d2ef4107d11cfe APKs:

Web build has been deployed to https://example-5nskso4ei-flutter-widget-from-html.vercel.app. Quick links:

flutter_widget_from_html - v0.8.5

Published by daohoangson over 2 years ago

  • Improve IFRAME error & timer handling (#709)
  • Fix FwfhTextStyle usage within CupertinoPageScaffold (#713)

Deployed 6f1e8aecd92e8b1f7043f16ebeeb5462a06adc37 to https://example-ozfstoncz-flutter-widget-from-html.vercel.app.

Quick links:

flutter_widget_from_html - v0.8.3+1

Published by daohoangson almost 3 years ago

  • Add support for HtmlWidget.isSelectable (#631)
  • Add support for HtmlWidget.onSelectionChanged (#672)
  • New package: fwfh_selectable_text (#672)

Deployed a5d558f921b7324207b25d241fc8e2bf3496b1bb to https://example-r4y3ggrsv-flutter-widget-from-html.vercel.app.

Quick links:

flutter_widget_from_html - v0.8.3

Published by daohoangson almost 3 years ago

  • Add support for [email protected] (#655)
  • Add support for [email protected] (#648)
  • Add support for [email protected] (#657)
  • New package: fwfh_text_style (#628)
  • Allow HtmlWidget.textStyle to be null (#632)
  • Conditionally import flutter_cache_manager (#641)
  • Avoid importing dart:io in svg_factory.dart (#653)
  • Fix detached sub-tree still being built (#650)
  • Fix bug text-align with padding (#651)
  • Fix anchor being stuck (#659)

Deployed b730577209d3f717f875e01cf81aedfb3a340399 to https://example-m1v9trqsc-flutter-widget-from-html.vercel.app.

Quick links:

flutter_widget_from_html - v0.8.2

Published by daohoangson almost 3 years ago

  • Optimize HtmlListMarker (#623)
  • Fix leading and trailing whitespace within PRE being trimmed (#624)
  • Replace evaluateJavascript with runJavascriptReturningResult (#625)
flutter_widget_from_html - v0.8.1

Published by daohoangson almost 3 years ago

  • Mark enhanced HtmlWidget.webViewXxx properties as deprecated (#614)
  • Add support for [email protected] (#611)
  • Add support for ListView and SliverList constructor params (#616)
flutter_widget_from_html - v0.8.0

Published by daohoangson about 3 years ago

  • Update for Flutter 2.5 (#587)
  • BREAKING: Change WidgetBit.inline default alignment → bottom (#598)
  • BREAKING: Remove BuildMetadata.willBuildSubtree (#607)
  • BREAKING: Remove BuildTree.replaceWith (#607)
  • BREAKING: Remove WidgetFactory.buildBorder (#608)
  • Add support for DETAILS tag (#593)
  • Add support for BuildOp.onTreeFlattening (#607)
  • Add support for display: inline-block (#607)
  • Add support for border-radius (#608)
  • Fix bug extra space because of colspan (#600)
  • Fix bug render loop when TABLE's baseline is needed (#604)
flutter_widget_from_html - v0.7.0

Published by daohoangson about 3 years ago

  • Flutter 2.2
  • BREAKING: Remove HtmlWidget.buildAsyncBuilder (#575)
  • BREAKING: Remove HtmlWidget.hyperlinkColor (#571)
  • BREAKING: Change HtmlWidget.onTapUrl signature to return a FutureOr<bool>. (#563)
  • Show click cursor for A tag (#322)
  • Add support for HtmlWidget.renderMode (#484)
  • Add support for error & loading builder for network image (#547, thanks @DFelten)
  • Improve text-decoration support (#569)
  • Add support for HtmlWidgetState.scrollToAnchor (#577)
  • Implement HtmlWidget.onErrorBuilder and onLoadingBuilder (#575)
  • Fix bug border+background (#516)
  • Fix incorrect UL/OL tag closing
  • Fix CssSizingValue equality check
  • Fix missing block margins on empty tag (#580)

This release includes some changes that may require migration if you have a custom WidgetFactory:

  • Remove TextStyleHtml.maxLines and .textOverflow (#570)
  • Remove WidgetFactory.buildColumnPlaceholder param trimMarginVertical
  • Remove WidgetFactory.buildColumnWidget param tsh
  • Change WidgetFactory.buildImageWidget params
  • Replace WidgetFactory.getListStyleMarker with getListMarkerText
  • Remove WidgetFactory.imageLoadingBuilder and imageErrorBuilder (#575)
  • Replace WidgetFactory.onTapAnchor param anchorContext with scrollTo
flutter_widget_from_html - v0.6.2

Published by daohoangson about 3 years ago

  • Add support for AUDIO tag (#530)
  • Restore computeLineMetrics usage in Flutter web. (#561)
  • Improve whitespace handling (#551)
  • Fix negative margin/padding throwing exception (#510)
  • Fix bug padding+background+h2 (#523)
  • Fix min-width being ignored (#544)
  • Fix portrait video (#553)
flutter_widget_from_html - v0.7.0-dev.2021080801

Published by daohoangson about 3 years ago

  • BREAKING: RenderMode.Column is now .column (ListView and SliverList have the same change)
  • Add support for error & loading builder (#547, thanks @DFelten)
  • Improve whitespace handling (#551)
  • Fix min-width being ignored (#544)
  • Fix portrait video (#553)
flutter_widget_from_html - v0.7.0-dev.2021061301

Published by daohoangson over 3 years ago

  • BREAKING: buildColumnPlaceholder removed trimMarginVertical named param
  • BREAKING: buildColumnWidget removed tsh param
  • BREAKING: onTapAnchor replaced anchorContext param with scrollTo
  • Add support for WidgetFactory.buildTextSpan
  • Add support for HtmlWidget.renderMode (#484)
flutter_widget_from_html - v0.7.0-dev.2021052101

Published by daohoangson over 3 years ago

  • Requires Flutter 2.2
  • Show click cursor for A tag (#322)
  • Fix incorrect UL/OL tag closing
  • Fix bug padding+background+h2 (#523)
flutter_widget_from_html - v0.6.1

Published by daohoangson over 3 years ago

  • Add support for white-space inline style (#483)
  • Add support for [email protected] (#498)
  • Change onTapUrl signature to accept a returning value (#499)
  • Fix _ListMarkerRenderObject invalid size
  • Fix anchor bugs (#485, #491, #493 and #500)
  • Fix TR display: none is still being rendered (#489)
  • Fix empty TD being skipped -> incorrect table layout (#503)
flutter_widget_from_html -

Published by daohoangson over 3 years ago

  • Flutter 2 with null safety 🚀 (#436, special thanks to @miDeb)
  • Implement new packages:
    • fwfh_webview (#448)
    • fwfh_url_launcher (#450)
    • fwfh_svg (#452)
    • fwfh_chewie (#461)
    • fwfh_cached_network_image (#463)
  • Use csslib to parse inline style (#379)
  • Implement computeDryLayout (#411)
  • Dispose recognizer properly (#466)
  • Add Flutter Web support for webViewMediaPlaybackAlwaysAllow (#468)

Deployed c0e08e790d4b827766d4cd7586db4e31cabe92a5 to https://api-iou4gliwz-flutter-widget-from-html.vercel.app.

Quick links:

flutter_widget_from_html -

Published by daohoangson over 3 years ago

  • Dispose recognizer properly (#466)
  • Add Flutter Web support for webViewMediaPlaybackAlwaysAllow (#468)
  • Update test for [email protected] (#469)

Deployed 1a07c5d9218f55dd8975a73528854c25949d4dc0 to https://api-5mal3qqic-flutter-widget-from-html.vercel.app.

Quick links:

Package Rankings
Top 1.64% on Pub.dev
Badges
Extracted from project README
Flutter codecov pub package pub package pub package pub package pub package pub package pub package
Related Projects