ArcaneTableMd class
Custom Markdown block component for rendering tables in Arcane UI with horizontal scrolling and bordered styling.
Extends BlockMd to parse and display Markdown tables using StaticTable, wrapped in a scrollable Scrollbar
for wide content. Integrates with ArcaneTheme for border radius and colors, making it suitable for data
presentation in BasicCard, Section, or FillScreen. Handles variable column counts efficiently,
skipping separator rows and empty cells. Performance note: Uses ScrollController for smooth horizontal
scrolling without full widget rebuilds; ideal for dynamic content in SliverScreen without layout thrashing.
Key features:
- Parses pipe-delimited Markdown tables into rows of TD cells.
- Applies TableBorder with theme-based styling for professional appearance.
- Filters out header separator lines (e.g., '---') and empty rows.
- Supports
MdWidgetfor nested Markdown in cells, enabling rich inline content.
Usage example:
// Markdown: | Header | Value |\n| --- | --- |\n| Row1 | Data |
// Renders as scrollable [StaticTable] if columns exceed viewport.
You can use this in your Arcane UI projects to display properly formatted markdown tables. For instance:
```dart
ArcaneTableMd() can be used within [Section], [BasicCard], [FillScreen], or [SliverScreen]```
- Inheritance
-
- Object
- MarkdownComponent
- BlockMd
- ArcaneTableMd
Constructors
Properties
- exp → RegExp
-
no setterinherited
- expString → String
-
Regular expression pattern for detecting Markdown table syntax in block text.
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- inline → bool
-
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
build(
BuildContext context, String text, GptMarkdownConfig config) → Widget -
Builds the table widget from parsed Markdown text.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
span(
BuildContext context, String text, GptMarkdownConfig config) → InlineSpan -
inherited
-
test(
) → void -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited