From 0362fe50953348b400a3a3984786cd2b14ca3276 Mon Sep 17 00:00:00 2001 From: RaulRodrigo06 Date: Thu, 13 Apr 2023 16:15:03 -0300 Subject: [PATCH 1/2] feat: adding onTap property on TextFormField --- lib/src/widgets/fields/ds_text_form_field.widget.dart | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/src/widgets/fields/ds_text_form_field.widget.dart b/lib/src/widgets/fields/ds_text_form_field.widget.dart index 1bea1777..522ba248 100644 --- a/lib/src/widgets/fields/ds_text_form_field.widget.dart +++ b/lib/src/widgets/fields/ds_text_form_field.widget.dart @@ -12,6 +12,8 @@ class DSTextFormField extends StatelessWidget { required this.hint, required this.onChanged, this.textInputAction = TextInputAction.send, + this.onTap, + this.onTapOutside, this.maxLines, this.textCapitalization = TextCapitalization.sentences, this.showEmojiButton = false, @@ -24,6 +26,8 @@ class DSTextFormField extends StatelessWidget { final String hint; final void Function(String) onChanged; final TextInputAction textInputAction; + final VoidCallback? onTap; + final void Function(PointerDownEvent)? onTapOutside; final int? maxLines; final TextCapitalization textCapitalization; final bool showEmojiButton; @@ -83,6 +87,8 @@ class DSTextFormField extends StatelessWidget { maxLines: obscureText ? 1 : maxLines, onChanged: onChanged, focusNode: focusNode, + onTap: onTap, + onTapOutside: onTapOutside, ), ), ), From cc52ad317cde1a34698a732edb4280efc48ee476 Mon Sep 17 00:00:00 2001 From: RaulRodrigo06 Date: Fri, 14 Apr 2023 09:23:31 -0300 Subject: [PATCH 2/2] chore: upgrade version and update changelog --- CHANGELOG.md | 3 +++ pubspec.yaml | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8ee89825..d9c5ef5d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## 0.0.47 + +* [DSTextFormField] Add onTap and onTapOutside on DSTextFormField. ## 0.0.46 * [DSToast] Toast layout adjustment. diff --git a/pubspec.yaml b/pubspec.yaml index d67db801..c6ec20dd 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: blip_ds description: Blip Design System for Flutter. -version: 0.0.46 +version: 0.0.47 homepage: https://github.com/takenet/blip-ds-flutter#readme repository: https://github.com/takenet/blip-ds-flutter