Skip to content

Commit 18694ec

Browse files
committed
renamed dismissKeyboardOnSubmit to dismissibleKeyboard
1 parent d842912 commit 18694ec

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

modules/ensemble/lib/layout/form.dart

+2-2
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ class EnsembleForm extends StatefulWidget
6868
_controller.labelStyle = Utils.getTextStyle(value),
6969
'enabled': (value) => _controller.enabled = Utils.optionalBool(value),
7070
'readOnly': (value) => _controller.readOnly = Utils.optionalBool(value),
71-
'dismissKeyboardOnSubmit': (value) => _controller.dismissKeyboardOnSubmit = Utils.getBool(value, fallback: true),
71+
'dismissibleKeyboard': (value) => _controller.dismissibleKeyboard = Utils.getBool(value, fallback: _controller.dismissibleKeyboard),
7272
'width': (value) => _controller.width = Utils.optionalInt(value),
7373
'height': (value) => _controller.height = Utils.optionalInt(value),
7474
'gap': (value) => _controller.gap =
@@ -111,7 +111,7 @@ class FormController extends WidgetController {
111111
String? labelOverflow;
112112
bool? enabled;
113113
bool? readOnly;
114-
bool dismissKeyboardOnSubmit = true;
114+
bool dismissibleKeyboard = true;
115115

116116
// labelMaxWidth applicable only to labelPosition=start
117117
int? labelMaxWidth;

modules/ensemble/lib/widget/helpers/form_helper.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ class FormHelper {
119119
}
120120
}
121121
// only dismiss keyboard if dismissKeyboardOnSubmit is true (By default it is true)
122-
if(formState?.widget.controller.dismissKeyboardOnSubmit == true) {
122+
if(formState?.widget.controller.dismissibleKeyboard == true) {
123123
FocusManager.instance.primaryFocus?.unfocus();
124124
}
125125
}

modules/ensemble/lib/widget/input/form_textfield.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ abstract class BaseTextInput extends StatefulWidget
146146
'enableClearText': (value) =>
147147
_controller.enableClearText = Utils.optionalBool(value),
148148
'dismissibleKeyboard': (value) =>
149-
_controller.dismissibleKeyboard = Utils.getBool(value, fallback: true),
149+
_controller.dismissibleKeyboard = Utils.getBool(value, fallback: _controller.dismissibleKeyboard),
150150
'obscureToggle': (value) =>
151151
_controller.obscureToggle = Utils.optionalBool(value),
152152
'obscured': (widget) => _controller.obscureText == true,

0 commit comments

Comments
 (0)