vyuh_diagram_flutter 2.17.0 copy "vyuh_diagram_flutter: ^2.17.0" to clipboard
vyuh_diagram_flutter: ^2.17.0 copied to clipboard

Shared Flutter rendering, input and text integration for Vyuh Diagram.

vyuh_diagram_flutter #

pub.dev

A Flutter canvas for diagrams, with rendering, selection, navigation, text layout, themes and effects. Its main import includes Core and the JSON codec.

Install #

flutter pub add vyuh_diagram_flutter

Show a diagram #

import 'package:vyuh_diagram_flutter/vyuh_diagram_flutter.dart';

final controller = DiagramController();
controller.createShape(
  Shapes.rectangle, at: DiagramPoint.zero, text: 'Hello Flutter',
);

// Place this widget in a bounded layout.
DiagramCanvas(controller: controller, theme: DiagramTheme.light);
// Dispose the controller when its owner closes.

The core canvas lets people navigate and select. Your app can edit through controller methods and embed regular Flutter widgets in shapes. The separate commercial editor extension adds drawing tools and an inspector.

Use DiagramTheme.dark for a dark canvas. Configure navigation and images with the included NavigationExtension and ImagesExtension.

See Getting started, embedded widgets, theming and extensions.

Coding-agent skill #

dart run skills@ get -p vyuh_diagram_flutter -s vyuh-diagram-flutter-integration

License #

Licensed under the Apache License, Version 2.0. Dependencies retain their own licenses; see third-party notices.