meta_mantle_universal library
MetaMantle Universal Component Model and Cross-Platform Rendering Architecture.
Enables defining portable, platform-agnostic UI components that can render to:
- Native semantic DOM nodes in the browser (Mode B).
- Server-side semantic HTML documents with full SEO and Schema.org markup.
- Flutter Widget trees for iOS, Android, macOS, Windows, Linux, and Flutter Web (Mode A).
Classes
- FlutterWebAccelerator
- Accelerator and diagnostic toolkit for Flutter Web (Mode A). Analyzes Flutter web builds, diagnoses Wasm compatibility, font/bundle weights, and recommends multi-threaded Skwasm headers and bootstrap optimizations.
- FlutterWebAnalysisReport
- Comprehensive analysis report for Flutter Web applications.
- InsertChildPatch
- Insert new child node at index.
- MantleApp
- Universal application root definition.
- MantleAppBar
- MantleArticle
-
Semantic article container component (
<article>). -
MantleAsyncSnapshot<
T> - Asynchronous state wrapper for Futures.
- MantleBorder
- MantleBorderRadius
- MantleBoxShadow
- MantleBreadcrumb
-
Universal breadcrumb trail component producing semantic
<nav aria-label="Breadcrumb">and<ol>markup. - MantleBreadcrumbItem
- Represents an item in a MantleBreadcrumb navigation trail.
-
MantleBuilder<
T> - A reactive component that rebuilds when a MantleObservable changes.
- MantleButton
- MantleCenter
- MantleCheckbox
- MantleChildPatch
- Patch describing child list reconciliation.
- MantleColor
- Universal styling abstraction that maps cleanly to CSS styles on Web/Server and Flutter styling properties (BoxDecoration, TextStyle, etc.) on native.
- MantleColumn
- MantleComponent
- Base class for all portable UI components in MetaMantle.
- MantleContainer
- MantleContext
- Context provided to components during build time.
- MantleCustomElement
- Escape hatch allowing rendering of arbitrary custom HTML elements, Web Components, or SVG tags.
- MantleDetails
-
Semantic collapsible disclosure component (
<details>and<summary>). - MantleDiffEngine
-
Computes the diff between
oldNodeandnewNode. - MantleDisposable
- Contract for objects that need lifecycle disposal.
- MantleDrawer
- Universal drawer component for side navigation and menus.
- MantleEdgeInsets
- MantleElementNode
- Represents an element node (such as container, button, div, section, heading, etc.).
- MantleEvent
- Abstract cross-platform event passed to portable Mantle event callbacks.
- MantleExpanded
- MantleForm
- MantleFragment
- Represents a collection of siblings without an enclosing wrapper.
-
MantleFutureBuilder<
T> - A component that renders based on the latest state of a Future.
- MantleGestureDetector
- MantleGrid
- MantleHeading
- MantleIcon
- MantleIconButton
- MantleImage
- MantleIsland
- Represents a scoped Flutter Island mount container in hybrid rendering (Strategy C: RenderingStrategy.domWithFlutterIslands).
- MantleKey
- Key for establishing stable identity during reconciliation across renders.
- MantleLabel
- MantleLandmark
- MantleLink
- MantleList
-
Semantic list container component (
<ul>or<ol>). - MantleListItem
-
Single item within a MantleList (
<li>). - Universal navigation component (bottom nav, top bar, or side rail).
- Concrete implementation of MantleContext for runtime navigation.
- Navigation destination item used in MantleNavigation.
- MantleNode
- Abstract base node in MetaMantle's universal intermediate representation.
-
MantleNodeVisitor<
T> - Visitor interface for traversing the MantleNode tree across different renderers.
-
MantleObservable<
T> - An observable value that notifies registered listeners when changed.
- MantleOffset
- MantlePadding
- MantlePage
- MantleParagraph
- MantlePatch
- Describes a mutation patch to update a DOM/UI node incrementally.
- MantleProduct
-
Rich semantic Product representation with embedded Schema.org microdata (
itemscope itemtype="https://schema.org/Product"). -
MantleRadio<
T> -
MantleRenderer<
T> -
Abstract contract for a rendering backend capable of turning a MantleNode
into a target platform visual or document tree of type
T. - MantleRichText
- MantleRoute
- Represents a single route declaration in MetaMantle's universal routing system.
- MantleRouteLink
- MantleRouteMatch
- Result of matching a path against registered MantleRoutes.
- MantleRouter
- Universal route resolver and matching engine.
- MantleRow
-
MantleSelect<
T> - MantleSemantics
- MantleServerRenderer
- Server-side semantic HTML renderer for MantleNode trees. Produces standard, accessible HTML markup with zero client-side framework overhead.
- MantleSizedBox
- MantleSpacer
- MantleStack
-
MantleState<
T extends StatefulMantleComponent> - The logic and internal state for a StatefulMantleComponent.
- MantleStateRegistry
- Registry retaining and managing lifecycle for MantleState instances.
- MantleStore
- Observable state store supporting key-value state management across components.
- MantleSwitch
- MantleTab
- Single tab item within a MantleTabs component.
- MantleTable
-
Semantic HTML Table component (
<table>). - MantleTableCell
-
A cell inside a MantleTableRow (
<td>or<th>). - MantleTableRow
-
A row inside a MantleTable (
<tr>). - MantleTabs
- Universal tabs component.
- MantleText
- MantleTextArea
-
Multi-line text input component (
<textarea>). - MantleTextField
- MantleTextNode
- Represents plain or styled text in the intermediate representation.
- MantleTextSpan
- MantleTextStyle
-
MantleValueKey<
T> - A key that uses a value of a particular type to identify itself.
- MantleWrap
- PatchChildPatch
- Update child node at index with patch.
- RemoveChildPatch
- Remove child node at index.
- ReplaceNodePatch
- Indicates the entire node must be replaced with newNode.
- StatefulMantleComponent
- A component that has associated mutable state.
- StatelessMantleComponent
- A component that does not require mutable local state.
- UpdateElementPatch
- Indicates an element node's attributes, classes, styles, and events should be patched.
- UpdateTextPatch
- Indicates a text node's content should be updated to newText.
- WebOptimizationFinding
- Diagnostic issue or optimization recommendation for Flutter Web.
Enums
Typedefs
- MantleEventCallback = void Function(MantleEvent event)
- MantleInput = MantleTextField
- Alias for MantleTextField matching HTML input nomenclature.
- MantleRouteBuilder = MantleComponent Function(MantleContext context)
- MantleRouteGuard = String? Function(MantleContext context)
-
MantleValueCallback<
T> = void Function(T value) - MantleVoidCallback = void Function()