TF-1960 Only allow text input fields on 1 line

(cherry picked from commit 091d1472bf19c7041012adb94192eb749433a595)
This commit is contained in:
dab246
2023-07-06 17:45:29 +07:00
committed by Dat Vu
parent b6d3d904e5
commit 39ce09fb82
7 changed files with 7 additions and 0 deletions
@@ -46,6 +46,7 @@ class IdentityInputFieldBuilder extends StatelessWidget {
onTextChange: onChangeInputNameAction,
textInputAction: TextInputAction.next,
autoFocus: true,
maxLines: 1,
textDirection: DirectionUtils.getDirectionByLanguage(context),
controller: editingController,
focusNode: focusNode,
@@ -360,6 +360,7 @@ class AdvancedSearchInputForm extends GetWidget<AdvancedFilterController>
controller: textEditingController,
readOnly: isSelectFormList,
mouseCursor: mouseCursor,
maxLines: 1,
textInputAction: isSelectFormList ? TextInputAction.done : TextInputAction.next,
onTap: onTap,
onTextSubmitted: (value) {
@@ -144,6 +144,7 @@ class _TextFieldAutoCompleteEmailAddressState
controller: tec,
focusNode: fn,
textInputAction: TextInputAction.next,
maxLines: 1,
decoration: InputDecoration(
filled: true,
fillColor: Colors.white,
@@ -34,6 +34,7 @@ class RulesFilterInputField extends StatelessWidget {
textDirection: DirectionUtils.getDirectionByLanguage(context),
keyboardType: TextInputType.text,
focusNode: focusNode,
maxLines: 1,
decoration: (RulesFilterInputDecorationBuilder()
..setContentPadding(const EdgeInsets.symmetric(vertical: PlatformInfo.isWeb ? 16 : 12, horizontal: 12))
..setHintText(hintText)
@@ -122,6 +122,7 @@ class SearchEmailView extends GetWidget<SearchEmailController>
textInputAction: TextInputAction.search,
controller: controller.textInputSearchController,
focusNode: controller.textInputSearchFocus,
maxLines: 1,
textDirection: DirectionUtils.getDirectionByLanguage(context),
textStyle: const TextStyle(color: Colors.black, fontSize: 16),
keyboardType: TextInputType.text,
@@ -143,6 +143,7 @@ class SearchMailboxView extends GetWidget<SearchMailboxController>
onTextChange: controller.onTextSearchChange,
textInputAction: TextInputAction.search,
autoFocus: true,
maxLines: 1,
controller: controller.textInputSearchController,
textDirection: DirectionUtils.getDirectionByLanguage(context),
textStyle: const TextStyle(
@@ -104,6 +104,7 @@ class SearchAppBarWidget extends StatelessWidget {
onTextChange: onTextChangeSearchAction,
onTextSubmitted: onSearchTextAction,
cursorColor: AppColor.colorTextButton,
maxLines: 1,
textDirection: DirectionUtils.getDirectionByLanguage(context),
autoFocus: true,
focusNode: searchFocusNode,