2.0 KiB
2.0 KiB
Dart - Form BLoC
Form Bloc for Dart & Flutter.
Features
-
Form
- FormInput: atom of a form
- Store data
- Validate this data
- FormEntry: shell of this atom
- Associate a key to an input
- Configure form attribute (exportation, name...)
- FormData: collection of entries
- Contain all entries
- Basic set operation
- FormInput: atom of a form
-
FormDataCubit
- Data management behind a form.
- Use entries to pass a FormData object
- You can use several pre configured FormInput for validation
- You can use updateFormData() to change FormData and validators during runtime (intersection, union, difference or replace)
- Data management behind a form.
-
Consistent
- Every class have same naming convention
Getting started
Simply add wyatt_form_bloc
in pubspec.yaml
, then
import 'package:wyatt_form_bloc/wyatt_form_bloc.dart';
Usage
todo