shape 0.0.1 copy "shape: ^0.0.1" to clipboard
shape: ^0.0.1 copied to clipboard

A package for building forms that can be easily reused, validated, and parsed, primarily for Flutter apps.

example/lib/main.dart

import 'package:shape_example/example_form_body.dart';

void main() {
  print(r'''
This project is not meant to be run like a normal Dart project, but instead
showcases how to generate form bodies using Shape.

Generate the form bodies by running:
  dart run build_runner build --delete-conflicting-outputs
''');

  final form = ExampleFormBody(name: 'John');
  print('Example form: $form');
  print('Example form errors: ${form.validate()}');

  final invalidForm = ExampleFormBody(name: null, age: 25);
  print('Invalid example form: $invalidForm');
  print('Invalid example form errors: ${invalidForm.validate()}');
}
3
likes
140
points
32
downloads

Publisher

verified publisherbetterment.dev

Weekly Downloads

A package for building forms that can be easily reused, validated, and parsed, primarily for Flutter apps.

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

equatable, meta

More

Packages that depend on shape