html_renderer
A lightweight Flutter package for rendering HTML content with customizable styling and widget support.
Features
- Renders simple HTML into Flutter widgets
- Supports paragraphs, headings, ordered and unordered lists, tables, and colored spans
- Allows style customization via parameters
Installation
Add to your pubspec.yaml:
dependencies:
html_renderer: ^0.0.7
Run:
dart pub get
Usage
import 'package:html_renderer/html_renderer.dart';
HtmlRenderer(
html: "<h1>Title</h1><p>Paragraph content</p>",
)
Example
See full examples in the example/ folder or in the online documentation.
License
MIT © 2025 Vinicius Cruvinel
Libraries
- html_parser
- html_parser_impl
- html_renderer
- utils/html_block_type_enum
- utils/html_cleaner
- utils/html_color_utils
- utils/html_table_parser
- utils/html_text_styles
- utils/parsers/html_list_parser
- utils/parsers/html_table_parser
- utils/strings/html_parser_regex
- utils/strings/html_parser_strings
- widgets/build_heading_widget
- widgets/build_ordered_list_widget
- widgets/build_paragraph_widget
- widgets/build_table_widget
- widgets/build_unordered_list_widget
- widgets/html_error_widget