Releases: nylo-core/nylo
Releases · nylo-core/nylo
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
v5.31.1
v5.31.0
- New
NyForm
widget! Designed to help you create forms easier in your app. Learn more here https://nylo.dev/docs/5.20.0/forms - Fix password_v1 & password_v2 validation rule not working in all cases
- Add
makeForm
toMetroService
class to create a form - Update
EmailRule
,URLRule
to checknull
values - Rename
PhoneNumberUsaRule
toPhoneNumberUsRule
- Update
textFieldMessage
on some validation rules - Small refactor of
NyTextField
widget. ThecopyWith
contains new parameters.- New
passwordViewable
parameter added toNyTextField
widget - New
validateOnFocusChange
parameter added toNyTextField
widget
- New
- Update
NyState
to check when post frame is complete for a better user experience - New
NyFormPicker
Widget added to the library - This will create a bottom modal with a picker. It can be used in NyForm's and as a standalone widget. - New
NyForm.login
method added toNyForm
class - This will create a login form - Ability to add custom form casts to
NyForm
class via Nylo. - Ability to create Forms using Metro. E.g.
metro make:form register
- New stub for creating Forms
- Small refactor to model stub
- Refactor
slate
command tometro slate:publish
- New
metro slate:install
command to install the slate package and publish all the files - Update docs
- Update pubspec.yaml