form_bloc 0.10.3
form_bloc: ^0.10.3 copied to clipboard
Easy Form State Management using BLoC pattern. Separate the Form State and Business Logic from the User Interface. Async Validation, Progress, Dynamic fields, and more.
0.10.3 #
- Fixed
hasFailureResponseproperty ofFormBlocLoadFailed,FormBlocFailureandFormBlocDeleteFailed.
0.10.2 #
- Changes
FieldBloc.addError(String error)toFieldBloc.addError(String error, {bool isPermanent = false}). - Documentation Updates.
0.10.1 #
clearmethod ofFieldBlocnow callupdateInitialValueinstead ofupdateValue.- Fixed
clearmethod ofFormBloc. - Documentation Updates.
0.10.0 #
Breaking changes #
- Removed
fieldBlocsgetter ofFormBloc. now you must useaddFieldBlocmethod. - Renamed
onDeletemethod ofFormBloctoonDeleting. - Added
canSubmitAgainparameter totoSuccessmethod ofFormBlocState. - Now
FieldBloccan be dynamically added to aFormBlocwithaddFieldBloc. - Now
FieldBloccan be dynamically removed from aFormBlocwithremoveFieldBloc. - Added
fieldBlocsproperty toFormBlocState. FieldBlocis now implemented by 3 classes:SingleFieldBlocwhich is the Interface of:InputFieldBloc.TextFieldBloc.BooleanFieldBloc.SelectFieldBloc.MultiSelectFieldBloc.
GroupFieldBloc.FieldBlocList.
- Documentation Updates.
0.8.0 #
- Added
isEditingproperty toFormBlocState(#9). - Added
deleteevent toFormBloc(#9). - Added
toDeleteFailedandtoDeleteSuccessfulmethods toFormBlocState(#9). - If the
initialValueofTextFieldBlocisnullis will be an empty String''. - If the
initialValueofBooleanFieldBlocisnullit will befalse. - If the
initialValueofMultiSelectFieldBlocisnullit will be an empty list[].
0.7.0 #
- Updated to
bloc: ^3.0.0
0.6.0 #
- Updated to
bloc: ^1.0.0bloc.state.listen->bloc.listenbloc.currentState->bloc.statedispatch->adddispose->close
- Documentation Updates.
Validators->FieldBlocValidatorsValidatorsError->FieldBlocValidatorsErrors- Removed
isRequiredproperty fromFieldBlocandFieldBlocState.
0.5.2 #
- Documentation Updates.
- Fixed a bug in
isValidproperty offieldBlocState. - Prevented to update
FieldBloc.valueif is the same value and is validated. - Improved
requiredTextFieldBlocvalidator.
0.5.1 #
- Fixed a bug in
MultiSelectFieldBloc.
0.5.0 #
- Dependency and Documentation Updates.
- Added
isValidatingproperty toFieldBlocState. - Added
asyncValidatorsproperty toFieldBloc. - Added
asyncValidatorDebounceTimeproperty toFieldBloc. - Added
addAsyncValidatorsmethod toFieldBloc. - Added
updateAsyncValidatorsmethod toFieldBloc. - Added
addErrormethod toFieldBloc. - Added
subscribeToFieldBlocsmethod toFieldBloc.
0.4.1 #
- Documentation Updates.
0.4.0 #
- Documentation Updates.
- Added Tests.
- Added
autoValidateproperty toFormBloc. - Added
InputFieldBloc<Value>. - Removed
FileFieldBloc, now you can useInputFieldBloc<File>. - Added
MultiSelectFieldBloc<Value>. - Added
errorproperty toFieldBlocState. - Added
canShowErrorproperty toFieldBlocState. - Added
canShowProgressproperty toFieldBlocState. - Added
suggestionsproperty toFieldBlocState. - Added
isRequiredproperty toFieldBlocState. - Changes
TextFieldBloc<Error>toTextFieldBloc. - Added
valueToIntproperty toTextFieldBlocState. - Added
valueToDoubleproperty toTextFieldBlocState. - Added
FormBlocDelegate.
0.3.1 #
- Added
isCancelingproperty toFormBlocSubmitting.
0.3.0 #
- Dependency and Documentation Updates.
- Added
submissionProgressproperty toFormBlocState. - Added
canSubmitproperty toFormBlocState. - Added
FormBlocSubmissionFailedstate toFormBloc. - Added
FormBlocSubmissionCancelledstate toFormBloc. - Added
cancelSubmissionevent toFormBloc. - Added
updateStateevent toFormBloc. - Added
onCancelSubmissionmethod toFormBloc. - Added
FileFieldBloc.
0.2.0 #
- Documentation Updates
0.1.0 #
- Initial Version of the library.