-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
new properties to form and TextInput widget for keyboard dissmiss control #1890
Conversation
@@ -68,6 +68,7 @@ class EnsembleForm extends StatefulWidget | |||
_controller.labelStyle = Utils.getTextStyle(value), | |||
'enabled': (value) => _controller.enabled = Utils.optionalBool(value), | |||
'readOnly': (value) => _controller.readOnly = Utils.optionalBool(value), | |||
'dismissKeyboardOnSubmit': (value) => _controller.dismissKeyboardOnSubmit = Utils.getBool(value, fallback: true), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fallback should be from the controller, don't duplicate the same thing,
try this
'dismissKeyboardOnSubmit': (value) => _controller
.dismissKeyboardOnSubmit =
Utils.getBool(value, fallback: _controller.dismissKeyboardOnSubmit),
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
@@ -110,6 +111,7 @@ class FormController extends WidgetController { | |||
String? labelOverflow; | |||
bool? enabled; | |||
bool? readOnly; | |||
bool dismissKeyboardOnSubmit = true; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also use the same property name for both, form and textinput
dismissibleKeyboard
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
Ticket: #1867
Demo Video:
https://github.com/user-attachments/assets/b6977565-88c6-4d38-8ac5-6e15265f526c
CC: @ridsashabbir @sharjeelyunus