Search packages, repositories and app categories

Package detailsv0.17.4

flutter_widget_from_html

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

Web
30-day downloads
266K
Likes
1.1K
Pub points
150

Install package

flutter pub add flutter_widget_from_html

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

A Flutter package that converts HTML content into native Flutter widgets, supporting a wide range of tags including hyperlinks, images, audio, video, and iframes. It enables rich, dynamic UI rendering from HTML strings or URLs, making it ideal for displaying formatted content such as blog posts, product descriptions, or user-generated text. The package is optimized for web platforms and integrates seamlessly with Flutter’s widget system. It handles styling and layout automatically while preserving the structure of the original HTML.

Use cases

  • Rendering rich text from CMS
  • Displaying user-generated HTML content
  • Embedding multimedia in web apps
  • Creating dynamic help or documentation sections
  • Building server-driven UIs

Key features

  • Supports hyperlinks, images, audio, video, and iframes
  • Automatic HTML to widget conversion
  • Styling and layout preservation
  • Web platform optimization
  • Extensible tag handling

Suitable for

  • Web-based Flutter applications
  • Content-heavy apps with HTML sources
  • Server-driven UI implementations
  • Apps requiring dynamic rich text rendering

Considerations

  • Limited support on non-web platforms
  • Potential performance impact with complex HTML
  • Requires careful sanitization of untrusted input
  • May need custom styling overrides for complex layouts

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

HtmlWidget monorepo

Flutter Coverage

This repo contains the source code for everything HtmlWidget-related.

Name Link
flutter_widget_from_html pub package
flutter_widget_from_html_core pub package
fwfh_cached_network_image pub package
fwfh_chewie pub package
fwfh_just_audio pub package
fwfh_svg pub package
fwfh_url_launcher pub package
fwfh_webview pub package
Demo app https://demo.fwfh.dev, supported/tags.html
Special dartpad with our packages https://try.fwfh.dev

Buy Me A Coffee

Categories

Dependencies

Source repository

Projects using this package