Skip to content

Form Editor Packages

The Form Editor module is two packages — a runtime library for rendering and managing forms, and an editor library for visually designing them. You almost always want both during development and just the runtime in production.

Authenticate with pub.vyuh.tech first

Both Form Editor packages is hosted on the private pub.vyuh.tech registry. Before running pub get, register a Bearer token issued by Vyuh Technologies based on your plan.

Run the one-time setup:

dart pub token add https://pub.vyuh.tech

Don't have a token yet? Email ask@vyuh.tech to request one. For full details (CI, Docker, rotation, troubleshooting), see the Pub Token Setup guide.

Packages

Package Version Role
vyuh_feature_forms1.18.3Form runtime — models, 12 field types, validation, conditional rules, step forms, and the fluent `FormBuilder` DSL. Required at runtime to render any form.
vyuh_form_editor1.2.2Visual designer — drag-drop canvas, field palette, properties panel, import/export. Use it at authoring time; you can strip it from production builds.
  • vyuh_feature_forms1.18.3

    Form runtime — models, 12 field types, validation, conditional rules, step forms, and the fluent `FormBuilder` DSL. Required at runtime to render any form.

  • vyuh_form_editor1.2.2

    Visual designer — drag-drop canvas, field palette, properties panel, import/export. Use it at authoring time; you can strip it from production builds.

How they fit together

Form Editor package dependencyThe vyuh_form_editor package depends on vyuh_feature_forms, which provides the form runtime models, fields, and rules.vyuh_form_editorFlutter visual designerdepends onvyuh_feature_formsRuntime models, fields, and rules
  • vyuh_feature_forms is the floor. It contains every runtime primitive (field types, validators, conditions, actions, the FormBuilder DSL). Any Flutter app that renders a form built by this module needs this package.
  • vyuh_form_editor adds the visual authoring experience on top. It depends on the runtime to understand field schemas and preview the rendered form inside the canvas.

Pick the combination that matches your build

Runtime-only (end-user app)

The most common production setup — render forms authored elsewhere, no design UI in the shipping app:

yaml
dependencies:
  vyuh_feature_forms:
    hosted: https://pub.vyuh.tech
    version: ^1.18.3

This is the smallest footprint. Forms are loaded from JSON or built with the FormBuilder DSL in Dart code, then rendered with the runtime widgets.

Runtime + editor (authoring tool, internal admin)

Add the editor for admin apps, authoring tools, or any build that lets users design forms interactively:

yaml
dependencies:
  vyuh_feature_forms:
    hosted: https://pub.vyuh.tech
    version: ^1.18.3
  vyuh_form_editor:
    hosted: https://pub.vyuh.tech
    version: ^1.2.2

The editor re-exports the runtime under the hood, so you can import either package and still access the shared types.

See also