Flutter Gems is a curated list of 7250+ useful Dart & Flutter packages that are categorized based on functionality.
Top Flutter HTML, CSS and SASS packages
Last updated: May 18, 2026
Rendering raw HTML and CSS within a native Flutter app is necessary when displaying rich content from a legacy CMS, email bodies, or marketing websites.
Best Practices for HTML
- Native vs. WebView: If the HTML is static text and images (like an article), use an HTML parsing package to convert the tags into native Flutter widgets (
RichText,Image). This is much faster and uses less memory than embedding a fullWebView. - Sanitization: If rendering user-generated HTML, you must sanitize it locally or on your backend to remove
<script>tags and maliciousiframeembeds to protect against Cross-Site Scripting (XSS). - CSS Limitations: Native HTML-to-Flutter parsers do not support complex CSS rules (like Flexbox, Grid, or absolute positioning). If the layout relies heavily on advanced CSS, a
WebViewis your only viable option.
The complete list of HTML Renderers, DOM Parsers, and CSS styling packages for Flutter is provided below.
html
👍 655 ⬇️ 5.5M
Dart 3 compatibleMaintenance Status: Average
APIs for parsing and manipulating HTML content outside the browser.
csslib
👍 62 ⬇️ 5.6M
Dart 3 compatibleMaintenance Status: Average
A library for parsing and analyzing CSS (Cascading Style Sheets).
html_editor_enhanced
👍 658 ⬇️ 29.8K
Dart 3 compatibleMaintenance Status: Good
HTML rich text editor for Android, iOS, and Web, using the Summernote library. Enhanced with highly customizable widget-based controls, bug fixes, callbacks, dark mode, and more.
sanitize_html
👍 51 ⬇️ 701.3K
Dart 3 compatibleMaintenance Status: Poor
Function for sanitizing HTML to prevent XSS by restrict elements and attributes to a safe subset of allowed values.
html_unescape
👍 180 ⬇️ 290.5K
Dart 3 compatibleMaintenance Status: Poor
A small library for un-escaping HTML. Supports all Named Character References, Decimal Character References and Hexadecimal Character References.
html2md
👍 63 ⬇️ 72.4K
Dart 3 compatibleMaintenance Status: Average
A library for converting HTML to Markdown. It supports CommonMark, simple table and custom converting rules.
beautiful_soup_dart
👍 112 ⬇️ 2.6K
Dart 3 compatibleMaintenance Status: Poor
Dart native package inspired by Beautiful Soup 4 Python library. Provides easy ways of navigating, searching, and modifying the HTML tree.
vsc_quill_delta_to_html
👍 50 ⬇️ 63.3K
Dart 3 compatibleMaintenance Status: Average
A robust Quill Delta to HTML converter. This is a complete port of the popular quill-delta-to-html Typescript/Javascript package to Dart.
sass
👍 20 ⬇️ 79.4K
Dart 3 compatibleMaintenance Status: Good
A Sass implementation in Dart.
htmltopdfwidgets
👍 72 ⬇️ 12.2K
Dart 3 compatibleMaintenance Status: Good
A Dart package that converts HTML and Markdown rich text content into high-quality PDF widgets. Simplify the creation of PDF documents by seamlessly transforming your structured text content into printable, professional PDFs. Perfect for generating reports, invoices, and more!
html_character_entities
👍 21 ⬇️ 43
Dart 3 compatibleMaintenance Status: Poor
A utility class containing maps of every HTML 4.01 character entity, including ASCII and hex codes, and methods to encode/decode strings with those character entities.
linkcheck
👍 15 ⬇️ 7K
Dart 3 compatibleMaintenance Status: Good
A very fast link-checker. Crawls sites and checks integrity of links both in HTML and in CSS.
sass_api
👍 4 ⬇️ 10.2K
Dart 3 compatibleMaintenance Status: Good
Additional APIs for Dart Sass.
jael3
👍 2 ⬇️ 68
Dart 3 compatibleMaintenance Status: Good
A simple server-side HTML templating engine for Dart. Comparable to Blade or Liquid.
widget_to_html
👍 2 ⬇️ 23
Dart 3 compatibleMaintenance Status: Good
Simple package that uses widget to build html, specially for emails! It has custom widget-like classes makes you feel like you are building a flutter widget, like react-email does.
sass_migrator
👍 1 ⬇️ 185
Dart 3 compatibleMaintenance Status: Good
A tool for running migrations on Sass files
html_editor
👍 118 ⬇️ 25
Maintenance Status: Poor
Flutter HTML Editor is a text editor for android and iOS to help write WYSIWYG HTML code based on the Summernote javascript wrapper
beautifulsoup
👍 28 ⬇️ 21
Maintenance Status: Poor
A dart port of the famous python library beautifulsoup
scrapy
👍 28 ⬇️ 13
Maintenance Status: Poor
A dart port of the idiomatic python library Scrapy, which provides a fast high-level web crawling & scraping framework for dart and Flutter.
