Releases: nylo-core/nylo
Releases · nylo-core/nylo
v6.0.1
v6.0.0
v5.31.8
v5.31.7
v5.31.6
v5.31.5
- New docs on nylo.dev for Forms - read more here
- 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 andNyTextField
'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. - Refactor
NyTextField
class - Refactor
NyFormCheckbox
class to support global styles FormStyle
var added to Nylo class- Small refactor to cli_dialog to pass static analysis
- Update pubspec.yaml
v5.31.4
v5.31.3
- 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 is uppercase.
- To set a validation rule, you must now use
- Fix autofocus on
Field
's inNyForm
- Small refactor to toast widget
v5.31.2
- Add new Forms
- NyFormCheckbox - This will create a checkbox form field
- NyFormDateTimePicker - This will create a date time picker form field
- Refactor NyFormData class
- Update the Form stub
- Add new dependency date_field
- Update README
- Fix slight issue with NyForm when handling validation rules
- Update
validate
helper in NyState