Releases: nylo-core/nylo
Releases · nylo-core/nylo
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
v5.30.4
v5.30.3
v5.30.2
v5.30.1
v5.30.0
- Fix
MetroService
not properly suffixing the file names - Added
StorageConfig
class to the library. This will allow you to set the storage configuration for your app.
StorageConfig.init(
androidOptions: AndroidOptions(
resetOnError: true,
encryptedSharedPreferences: false
)
);
- Set
NyRichText
style color toColors.black
by default - Update pubspec.yaml
v5.29.0
- Added
containsRoutes
method toNylo
class. Now you can check if your router has specific routes. E.g.Nylo.containsRoutes(["/home", "/settings"])
- Fix
MetroService
duplicating slate file names - Update home_page.dart to check if auth routes are defined
- pubspec.yaml update