bond_form 0.0.1+26 bond_form: ^0.0.1+26 copied to clipboard
Form is a Bond package provides a convenient way to handle Form.
Changelog #
0.0.1+26 #
- Added
FileFieldState
class to manage the state of file form fields.FileFieldState
provides a way to manage file input fields within a form.
0.0.1+25 #
- Refactor: Separated field state and value retrieval methods into distinct files.
- Moved field state retrieval methods to
bond_form_extensions.dart
. - Moved value retrieval methods to
bond_form_values.dart
.
- Moved field state retrieval methods to
- Enhancement: Updated
required_values.dart
to include theRequiredValues
class for mandatory field checks. - Improvement: Improved overall code organization and maintainability by dividing responsibilities into specific files.
0.0.1+24 #
- fix
valid
method logic.
0.0.1+23 #
valid
New method onBondFormState
to check a specific field validate.
0.0.1+22 #
- Added
HiddenFieldState
class to manage the state of hidden form fields.HiddenFieldState
provides a way to manage hidden input fields within a form.
- Updated
BondFormState
with methods to handle hidden fields.hiddenFieldValue
: Retrieves the value of a hidden field.hiddenField
: Retrieves the state of a hidden field using a simplifiedget
method.
- Updated
RequiredValues
class to ensure hidden field values are not null.hiddenFieldValue
: Ensures the value of a hidden field is not null.
- Updated
FormController
with methods to update hidden field values.updateHiddenField
: Updates aHiddenFieldState
with a given value.
0.0.1+21 #
- Added the
RequiredValues
class to ensure required form field values are not null.- Methods added to
RequiredValues
class:textFieldValue
: Ensures the value of a text field is not null.radioGroupValue
: Ensures the value of a radio group field is not null.checkboxGroupValue
: Ensures the first selected value of a checkbox group is not null.dropDownValue
: Ensures the value of a dropdown field is not null.asyncDropDownValue
: Ensures the value of an async dropdown field is not null.
- Methods added to
- Added the
required
extension method toBondFormState
.- Provides an instance of
RequiredValues
to ensure required field values are not null.
- Provides an instance of
- Updated the Dartdoc comments for
XBondFormState
extension.- Provided clear and comprehensive documentation for all methods:
textFieldValue
: Retrieves the value of a text field.radioGroupValue
: Retrieves the value of a radio group field.checkboxGroupValue
: Retrieves the first selected value of a checkbox group.dropDownValue
: Retrieves the value of a dropdown field.asyncDropDownValue
: Retrieves the value of an async dropdown field.required
: Returns an instance ofRequiredValues
to ensure required field values are not null.
- Provided clear and comprehensive documentation for all methods:
- Updated the Dartdoc comments for
XFormController
extension.- Provided clear and comprehensive documentation for all methods:
updateText
: Updates aTextFieldState
with a given value.updateCheckbox
: Updates aCheckboxFieldState
with a given value.updateCheckboxGroup
: Updates aCheckboxGroupFieldState
with a given value.toggleCheckbox
: Toggles the value of a specific checkbox within a checkbox group.updateDate
: Updates aDateFieldState
with a given value.updateDropDown
: Updates aDropDownFieldState
with a given value.updateAsyncDropDown
: Updates aAsyncDropDownFieldState
with a given value.updateRadioButton
: Updates aRadioButtonFieldState
with a given value.updateRadioGroup
: Updates aRadioGroupFieldState
with a given value.
- Provided clear and comprehensive documentation for all methods:
0.0.1+20 #
- fix
IsTrue
andIsFalse
rules to deal with null value.
0.0.1+19 #
- fix
Numeric
rule to deal with null value.
0.0.1+18 #
- new extension methods support dealing with single bool checkbox field.
- fix
AlphaNum
andAlphaDash
rules to deal with null value.
0.0.1+17 #
- fix failure handling at the _onSubmit method.
0.0.1+16 #
- introduce
HasValidationErrors
mixin to update form fields state with the errors that comes from an api. services.
0.0.1+15 #
- add missing method 'updateAsyncDropDown' to
FormController
extension.
0.0.1+14 #
- introduced the async drop down menu field state
AsyncDropDownFieldState
.
0.0.1+13 #
- add more helpers methods inside
BondFormState
extension
0.0.1+12 #
- add clear method to
FormController
mixin
0.0.1+11 #
- add validate method to
FormController
mixin
0.0.1+10 #
- update readme.md file to mention the riverpod integration
0.0.1+9 #
- fix typo on readme.md file
0.0.1+8 #
- update readme.md files
- fix dart analysis issues
0.0.1+7 #
- update example.md and readme.md files
0.0.1+6 #
- fix validation localized message not rendered as excepted
0.0.1+5 #
- extract mixin FormController contains common form logic
0.0.1+4 #
- write public API has dartdoc comments
- fix dart analysis issues
0.0.1+3 #
- add necessary imports to bond form
0.0.1+2 #
- update bond_core dependency.
0.0.1+1 #
- add necessary imports to bond form
0.0.1 #
- initial release.