flutter_html_table
3.0.0, released 2 years ago by sub6resources.com
Renders HTML table tags within the flutter_html package using flutter_layout_grid.
What it does
This extension package allows the <table> tag to be rendered using the flutter_html package. It calculates the best fit for each element and sizes its cells accordingly, supporting Rowspans and colspans.
AI-written summary of version 3.0.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You are already using flutter_html and need to render <table> tags.
- You need table cells to span across multiple rows and columns.
Skip it when
- You are not using the flutter_html package.
- You need a standalone table widget independent of HTML rendering.
Strengths
- Supports rowspans and colspans for complex table layouts.
- Calculates optimal aspect ratios and cell sizes automatically.
Weaknesses
- Requires flutter_html as a dependency.
- Not documented for standalone use outside of flutter_html.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 3
Register TableHtmlExtension inside the Html widget extensions parameter.
Widget html = Html(
extensions: {
TableHtmlExtension(),
}
);Alternatives
Packages that do the same job and could replace flutter_html_table.
- flutter_widget_from_html
Render HTML content as native Flutter widgets with support for common tags, CSS, and media.
89Compare - flutter_widget_from_html_core
Render HTML content as native Flutter widgets with correctness and extensibility.
92Compare - fwfh_url_launcher
WidgetFactory mixin to launch links in HTML widgets via url_launcher.
74Compare - flutter_markdown_plus
A Markdown renderer widget for Flutter to display rich text from plain text data.
77Compare
Works with
Packages commonly used together with flutter_html_table: ones it builds on, ones built on it, and its own family.
- htmlflutter_html_table depends on itA Dart implementation of an HTML5 parser for strings and bytes.
- flutter_htmlflutter_html_table depends on itRenders static HTML and CSS as Flutter widget trees.
- flutter_layout_gridflutter_html_table depends on itA grid layout system for Flutter inspired by CSS Grid Layout.
- flutter_html_iframeSame familyRenders <iframe> tags in flutter_html using webview_flutter.
- flutter_html_mathSame familyRenders <math> tags in flutter_html using flutter_math_fork.
- flutter_html_allBuilt on flutter_html_tableConvenience package exporting all optional flutter_html widgets.