form_bloc 0.10.0 form_bloc: ^0.10.0 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.0 #
Breaking changes #
- Removed
fieldBlocs
getter ofFormBloc
. now you must useaddFieldBloc
method. - Renamed
onDelete
method ofFormBloc
toonDeleting
. - Added
canSubmitAgain
parameter totoSuccess
method ofFormBlocState
. - Now
FieldBloc
can be dynamically added to aFormBloc
withaddFieldBloc
. - Now
FieldBloc
can be dynamically removed from aFormBloc
withremoveFieldBloc
. - Added
fieldBlocs
property toFormBlocState
. FieldBloc
is now implemented by 3 classes:SingleFieldBloc
which is the Interface of:InputFieldBloc
.TextFieldBloc
.BooleanFieldBloc
.SelectFieldBloc
.MultiSelectFieldBloc
.
GroupFieldBloc
.FieldBlocList
.
- Documentation Updates.
0.8.0 #
- Added
isEditing
property toFormBlocState
(#9). - Added
delete
event toFormBloc
(#9). - Added
toDeleteFailed
andtoDeleteSuccessful
methods toFormBlocState
(#9). - If the
initialValue
ofTextFieldBloc
isnull
is will be an empty String''
. - If the
initialValue
ofBooleanFieldBloc
isnull
it will befalse
. - If the
initialValue
ofMultiSelectFieldBloc
isnull
it will be an empty list[]
.
0.7.0 #
- Updated to
bloc: ^3.0.0
0.6.0 #
- Updated to
bloc: ^1.0.0
bloc.state.listen
->bloc.listen
bloc.currentState
->bloc.state
dispatch
->add
dispose
->close
- Documentation Updates.
Validators
->FieldBlocValidators
ValidatorsError
->FieldBlocValidatorsErrors
- Removed
isRequired
property fromFieldBloc
andFieldBlocState
.
0.5.2 #
- Documentation Updates.
- Fixed a bug in
isValid
property offieldBlocState
. - Prevented to update
FieldBloc.value
if is the same value and is validated. - Improved
requiredTextFieldBloc
validator.
0.5.1 #
- Fixed a bug in
MultiSelectFieldBloc
.
0.5.0 #
- Dependency and Documentation Updates.
- Added
isValidating
property toFieldBlocState
. - Added
asyncValidators
property toFieldBloc
. - Added
asyncValidatorDebounceTime
property toFieldBloc
. - Added
addAsyncValidators
method toFieldBloc
. - Added
updateAsyncValidators
method toFieldBloc
. - Added
addError
method toFieldBloc
. - Added
subscribeToFieldBlocs
method toFieldBloc
.
0.4.1 #
- Documentation Updates.
0.4.0 #
- Documentation Updates.
- Added Tests.
- Added
autoValidate
property toFormBloc
. - Added
InputFieldBloc<Value>
. - Removed
FileFieldBloc
, now you can useInputFieldBloc<File>
. - Added
MultiSelectFieldBloc<Value>
. - Added
error
property toFieldBlocState
. - Added
canShowError
property toFieldBlocState
. - Added
canShowProgress
property toFieldBlocState
. - Added
suggestions
property toFieldBlocState
. - Added
isRequired
property toFieldBlocState
. - Changes
TextFieldBloc<Error>
toTextFieldBloc
. - Added
valueToInt
property toTextFieldBlocState
. - Added
valueToDouble
property toTextFieldBlocState
. - Added
FormBlocDelegate
.
0.3.1 #
- Added
isCanceling
property toFormBlocSubmitting
.
0.3.0 #
- Dependency and Documentation Updates.
- Added
submissionProgress
property toFormBlocState
. - Added
canSubmit
property toFormBlocState
. - Added
FormBlocSubmissionFailed
state toFormBloc
. - Added
FormBlocSubmissionCancelled
state toFormBloc
. - Added
cancelSubmission
event toFormBloc
. - Added
updateState
event toFormBloc
. - Added
onCancelSubmission
method toFormBloc
. - Added
FileFieldBloc
.
0.2.0 #
- Documentation Updates
0.1.0 #
- Initial Version of the library.