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
@@ -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(