Skip to content

Commit baa5710

Browse files
committed
v6.28.2
1 parent c405dac commit baa5710

File tree

5 files changed

+14
-3
lines changed

5 files changed

+14
-3
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## [6.28.2] - 2025-05-02
2+
3+
* Add: export 'form_chips and form_radio' to ny_widgets.dart
4+
* Add: `prefixIcon` to Field.password
5+
16
## [6.28.1] - 2025-04-30
27

38
* Fix: `_whenStateAction` method in `NyState`

lib/widgets/form/casts.dart

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -514,10 +514,13 @@ class FormCast {
514514
}
515515

516516
/// Cast to a password
517-
FormCast.password({bool viewable = false}) {
517+
FormCast.password({bool viewable = false, Widget? prefixIcon}) {
518518
type = "password";
519519
if (viewable) {
520520
type = "password:viewable";
521521
}
522+
523+
metaData = {};
524+
metaData['prefixIcon'] = prefixIcon;
522525
}
523526
}

lib/widgets/ny_form.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,8 +393,9 @@ class Field {
393393
this.metaData = const {},
394394
this.hidden = false,
395395
bool viewable = false,
396+
Widget? prefixIcon,
396397
this.readOnly,
397-
}) : cast = FormCast.password(viewable: viewable) {
398+
}) : cast = FormCast.password(viewable: viewable, prefixIcon: prefixIcon) {
398399
if (style == null) return;
399400

400401
metaData = {};

lib/widgets/ny_widgets.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ export 'ny_form.dart';
33
export 'ny_rich_text.dart';
44
export 'ny_text_field.dart';
55
export 'fields/form_picker.dart';
6+
export 'fields/form_chips.dart';
7+
export 'fields/form_radio.dart';
68
export '/helpers/ny_color.dart';
79
export '/helpers/ny_text_style.dart';
810
export '/router/page_transition/page_transition.dart';

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: nylo_support
22
description: Support library for the Nylo framework. This library supports routing, widgets, localization, cli, storage and more.
3-
version: 6.28.1
3+
version: 6.28.2
44
homepage: https://nylo.dev
55
repository: https://github.com/nylo-core/support/tree/6.x
66
issue_tracker: https://github.com/nylo-core/support/issues

0 commit comments

Comments
 (0)