Skip to content

Package access ​

Use Flutter 3.47 or later with Dart 3.13 or later. See all packages to choose what you need.

Core ​

For a Flutter app:

sh
flutter pub add vyuh_diagram_flutter

For a Dart service or agent:

sh
dart pub add vyuh_diagram_core

Core packages come from pub.dev. No token is needed.

Extensions ​

  1. Copy your package token from your Diagram account.
  2. Register it and enter the token when prompted:
sh
dart pub token add https://pub.vyuh.tech
  1. Add the extension to your pubspec.yaml. For example:
yaml
dependencies:
  vyuh_diagram_extension_editor:
    hosted: https://pub.vyuh.tech
    version: ^3.9.0
  1. Fetch the packages:
sh
flutter pub get

Use dart pub get for a Dart project. Keep the token out of your source code.

Continue with Getting started or adding extensions.