Releases: nylo-core/support
Releases · nylo-core/support
v5.82.2
v5.82.1
v5.82.0
- New
create
method added toNyFormData
class. This will allow you to create the form from the instance. - Add
FormStyle
to NyForm. This will allow you to set a global style for the form. It currently only supportsTextField
andNyFormCheckbox
widgets. - Ability to create custom validation rules in
NyForm
's - Added
refreshState
toNyForm
class. This will refresh the state of the form. - Added new typedefs
FormStyleTextField
andFormStyleCheckbox
for handling custom styles inNyForm
- Added
clear
method toNyForm
class. This will clear the form. - Added
clearField
method toNyForm
class. This will clear a specific field in the form. - Update
setField
andsetData
methods inNyForm
class. This will now update the state of the form after setting the field. - Small refactor to the
NyTextField
class - Refactor
NyFormCheckbox
class to support global styles FormStyle
added to Nylo class- Update pubspec.yaml
v5.81.2
v5.81.1
v5.81.0
- Refactor
FormValidator
class.- To set a validation rule, you must now use
FormValidator.rule("email")
instead ofFormValidator("email")
- You can now join multiple validation rules. E.g.
FormValidator().minLength(5).uppercase()
will check if the value is at least 5 characters long and has an uppercase letter.
- To set a validation rule, you must now use
- Fix autofocus on
Field
's inNyForm