skyloom_schema 0.10.0-dev.2 copy "skyloom_schema: ^0.10.0-dev.2" to clipboard
skyloom_schema: ^0.10.0-dev.2 copied to clipboard

A headless-first, schema-driven form engine for Flutter.

example/example.md

Skyloom Schema example #

The package example is an interactive documentation studio for every built-in field renderer and the Schema 1.0 contract.

Run it from the package root:

flutter run example/main.dart

The component explorer includes:

  • Live previews for all 14 built-in field types
  • Expandable, copyable JSON schemas
  • Common and type-specific property notes
  • Form, field, and validation API reference tables
  • Guides for responsive layouts, conditions, dependencies, remote options, workflows, typed Dart authoring, and controller integration

Minimal form #

import 'package:flutter/material.dart';
import 'package:skyloom_schema/skyloom_schema.dart';

class ProfileForm extends StatelessWidget {
  const ProfileForm({super.key});

  @override
  Widget build(BuildContext context) {
    return SkyloomForm.fromJson(
      schema: const {
        'id': 'profile',
        'fields': [
          {
            'key': 'name',
            'type': FormType.text,
            'label': 'Name',
            'validation': {'required': true},
          },
          {
            'key': 'email',
            'type': FormType.email,
            'label': 'Email',
            'validation': {'required': true, 'email': true},
          },
        ],
      },
      onSubmit: (values) => debugPrint('$values'),
    );
  }
}

See the package README.md for integration documentation and doc/schema-v1.md for the complete schema contract.

1
likes
0
points
469
downloads

Publisher

unverified uploader

Weekly Downloads

A headless-first, schema-driven form engine for Flutter.

Repository (GitHub)
View/report issues

Topics

#form #schema #validation #material-design

License

unknown (license)

Dependencies

flutter

More

Packages that depend on skyloom_schema