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()}');
}
1
likes
120
pub points
43%
popularity

Publisher

verified publisherbetterment.dev

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

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

equatable, meta

More

Packages that depend on shape