mermaid_flutter 0.3.0
mermaid_flutter: ^0.3.0 copied to clipboard
Native Flutter renderer for mermaid_core: TextPainter text measurement and a CustomPainter that paints the mermaid render scene directly. 28 diagram types.
0.3.0 #
-
Expose
MermaidView.onSceneChanged, including fullscreen views, while retaining the existing geometry-only notification behavior for paint overrides. -
Require
mermaid_core0.3.0 for the configuration and layout fixes.
0.2.1 #
- Add rendered diagram examples to the README.
0.2.0 #
Behavior changes
onNodeTapnow fires only for diagram nodes (SceneGroupRole.node). Sequence frames, class namespaces, composite states, C4 boundaries, journey sections, and pie legend entries are no longer tap targets.- Requires
mermaid_core0.2.0.
Changes
- Preserve requested monospace fonts and add platform symbol-font fallbacks for Unicode diagram labels.
- Add
MermaidViewControllerwith observable transforms, animated or immediate fit, and focus-by-node-id support. - Add
MermaidDiagram.onSceneChangedfor access to post-layout scene geometry. - Add
onEdgeTaptoMermaidDiagramandMermaidView, with precise stroke and label hit testing and stable Mermaid link indices. - Add paint-only flowchart node and link overrides to
MermaidDiagramandMermaidView; override changes reuse the parsed and laid-out base scene. - Add desktop/web node hover callbacks, node-only cursors, and optional tooltip
overlays to
MermaidDiagramandMermaidView. - Add opt-in node semantics with human labels, stable identifiers, transformed bounds, deterministic traversal, and accessible tap actions.
- Add headless
renderToPngandrenderSceneToPngAPIs for Flutter runners. - Add
MaterialMermaidTheme.fromThemeandfromColorSchemeto map Material colors and text roles to a light or darkMermaidTheme. - Render gradient strokes and multiply-composited links consistently in
ScenePainterand headless PNG output. - Keep node, edge, hover, semantics, and scene callbacks working when paint-only overrides change.
- The built-in fullscreen popup uses the view's own
padding,zoomStep,panStep, andshowControlsinstead of falling back to the defaults. - Refresh the pub.dev screenshots for the corrected layouts.
0.1.2 #
- Update
mermaid_coreto 0.1.2 for corrected flowchart, Event Modeling, Kanban, and C4 layouts.
0.1.1 #
- Make arrow controls move the viewport in the direction shown.
- Re-fit the diagram after viewport size changes, including when closing the fullscreen view.
0.1.0 #
Initial release.
MermaidDiagramwidget: parses, lays out and paints anymermaid_corediagram natively (no SVG/WebView).FlutterTextMeasurer(TextPainter-based) andScenePainter(CustomPainter) for lower-level use.- Live-editing support: keeps the last good render with an error overlay.
- Theme argument plus
%%{init}%%/frontmatter overrides.
