TF-1960 Only allow text input fields on 1 line
(cherry picked from commit 091d1472bf19c7041012adb94192eb749433a595)
This commit is contained in:
@@ -46,6 +46,7 @@ class IdentityInputFieldBuilder extends StatelessWidget {
|
|||||||
onTextChange: onChangeInputNameAction,
|
onTextChange: onChangeInputNameAction,
|
||||||
textInputAction: TextInputAction.next,
|
textInputAction: TextInputAction.next,
|
||||||
autoFocus: true,
|
autoFocus: true,
|
||||||
|
maxLines: 1,
|
||||||
textDirection: DirectionUtils.getDirectionByLanguage(context),
|
textDirection: DirectionUtils.getDirectionByLanguage(context),
|
||||||
controller: editingController,
|
controller: editingController,
|
||||||
focusNode: focusNode,
|
focusNode: focusNode,
|
||||||
|
|||||||
+1
@@ -360,6 +360,7 @@ class AdvancedSearchInputForm extends GetWidget<AdvancedFilterController>
|
|||||||
controller: textEditingController,
|
controller: textEditingController,
|
||||||
readOnly: isSelectFormList,
|
readOnly: isSelectFormList,
|
||||||
mouseCursor: mouseCursor,
|
mouseCursor: mouseCursor,
|
||||||
|
maxLines: 1,
|
||||||
textInputAction: isSelectFormList ? TextInputAction.done : TextInputAction.next,
|
textInputAction: isSelectFormList ? TextInputAction.done : TextInputAction.next,
|
||||||
onTap: onTap,
|
onTap: onTap,
|
||||||
onTextSubmitted: (value) {
|
onTextSubmitted: (value) {
|
||||||
|
|||||||
+1
@@ -144,6 +144,7 @@ class _TextFieldAutoCompleteEmailAddressState
|
|||||||
controller: tec,
|
controller: tec,
|
||||||
focusNode: fn,
|
focusNode: fn,
|
||||||
textInputAction: TextInputAction.next,
|
textInputAction: TextInputAction.next,
|
||||||
|
maxLines: 1,
|
||||||
decoration: InputDecoration(
|
decoration: InputDecoration(
|
||||||
filled: true,
|
filled: true,
|
||||||
fillColor: Colors.white,
|
fillColor: Colors.white,
|
||||||
|
|||||||
+1
@@ -34,6 +34,7 @@ class RulesFilterInputField extends StatelessWidget {
|
|||||||
textDirection: DirectionUtils.getDirectionByLanguage(context),
|
textDirection: DirectionUtils.getDirectionByLanguage(context),
|
||||||
keyboardType: TextInputType.text,
|
keyboardType: TextInputType.text,
|
||||||
focusNode: focusNode,
|
focusNode: focusNode,
|
||||||
|
maxLines: 1,
|
||||||
decoration: (RulesFilterInputDecorationBuilder()
|
decoration: (RulesFilterInputDecorationBuilder()
|
||||||
..setContentPadding(const EdgeInsets.symmetric(vertical: PlatformInfo.isWeb ? 16 : 12, horizontal: 12))
|
..setContentPadding(const EdgeInsets.symmetric(vertical: PlatformInfo.isWeb ? 16 : 12, horizontal: 12))
|
||||||
..setHintText(hintText)
|
..setHintText(hintText)
|
||||||
|
|||||||
@@ -122,6 +122,7 @@ class SearchEmailView extends GetWidget<SearchEmailController>
|
|||||||
textInputAction: TextInputAction.search,
|
textInputAction: TextInputAction.search,
|
||||||
controller: controller.textInputSearchController,
|
controller: controller.textInputSearchController,
|
||||||
focusNode: controller.textInputSearchFocus,
|
focusNode: controller.textInputSearchFocus,
|
||||||
|
maxLines: 1,
|
||||||
textDirection: DirectionUtils.getDirectionByLanguage(context),
|
textDirection: DirectionUtils.getDirectionByLanguage(context),
|
||||||
textStyle: const TextStyle(color: Colors.black, fontSize: 16),
|
textStyle: const TextStyle(color: Colors.black, fontSize: 16),
|
||||||
keyboardType: TextInputType.text,
|
keyboardType: TextInputType.text,
|
||||||
|
|||||||
@@ -143,6 +143,7 @@ class SearchMailboxView extends GetWidget<SearchMailboxController>
|
|||||||
onTextChange: controller.onTextSearchChange,
|
onTextChange: controller.onTextSearchChange,
|
||||||
textInputAction: TextInputAction.search,
|
textInputAction: TextInputAction.search,
|
||||||
autoFocus: true,
|
autoFocus: true,
|
||||||
|
maxLines: 1,
|
||||||
controller: controller.textInputSearchController,
|
controller: controller.textInputSearchController,
|
||||||
textDirection: DirectionUtils.getDirectionByLanguage(context),
|
textDirection: DirectionUtils.getDirectionByLanguage(context),
|
||||||
textStyle: const TextStyle(
|
textStyle: const TextStyle(
|
||||||
|
|||||||
@@ -104,6 +104,7 @@ class SearchAppBarWidget extends StatelessWidget {
|
|||||||
onTextChange: onTextChangeSearchAction,
|
onTextChange: onTextChangeSearchAction,
|
||||||
onTextSubmitted: onSearchTextAction,
|
onTextSubmitted: onSearchTextAction,
|
||||||
cursorColor: AppColor.colorTextButton,
|
cursorColor: AppColor.colorTextButton,
|
||||||
|
maxLines: 1,
|
||||||
textDirection: DirectionUtils.getDirectionByLanguage(context),
|
textDirection: DirectionUtils.getDirectionByLanguage(context),
|
||||||
autoFocus: true,
|
autoFocus: true,
|
||||||
focusNode: searchFocusNode,
|
focusNode: searchFocusNode,
|
||||||
|
|||||||
Reference in New Issue
Block a user