FLUTTER ECOSYSTEM

flutter_html

A Flutter widget for rendering static HTML and CSS as Flutter widgets.

Latest version
3.0.0
30-day downloads
741K
Likes
2.2K
Pub points
90

Package Overview

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

Overview

flutter_html is a Flutter package that enables rendering static HTML and CSS content as native Flutter widgets. It parses HTML strings and converts them into interactive UI components, supporting a wide range of HTML tags and CSS styles. Ideal for displaying rich text from external sources like blogs, documentation, or CMS content, it ensures consistent rendering across platforms including Android, iOS, Web, macOS, Windows, and Linux. The package is lightweight and integrates seamlessly with existing Flutter apps.

Use cases
  • Rendering blog posts
  • Displaying dynamic content from APIs
  • Showing formatted user-generated text
  • Integrating CMS content
  • Creating rich text displays in apps
Key features
  • Supports HTML and CSS parsing
  • Cross-platform compatibility
  • Customizable styling
  • Extensible widget handling
  • Lightweight and fast
Suitable for
  • Apps needing rich text display
  • Content-heavy applications
  • Server-driven UI scenarios
  • Developers integrating external HTML
  • Projects requiring responsive text layouts
Considerations
  • Limited support for complex JavaScript
  • Security risks with untrusted HTML
  • Performance impact with large HTML content
  • No real-time DOM updates
  • Requires careful sanitization of input
Supported platformsAndroidiOSWebmacOSWindowsLinux

Install package

flutter pub add flutter_html

Categories

Dependencies

Dependency list 4 items

Source repository

Related projects