TF-129 Fix bug after select a recipient, focus should still in the same field

This commit is contained in:
dab246
2021-09-30 17:45:22 +07:00
committed by Dat H. Pham
parent 607f8194ff
commit 89cbb8fcc2
2 changed files with 2 additions and 0 deletions
@@ -53,6 +53,7 @@ class TextFieldBuilder {
onChanged: _onTextChange,
cursorColor: AppColor.primaryColor,
controller: _textController,
autocorrect: false,
textInputAction: _textInputAction,
decoration: _inputDecoration,
maxLines: _maxLines,
@@ -120,6 +120,7 @@ class EmailAddressComposerWidgetBuilder {
? keyToEmailAddress
: Key('${prefixEmailAddress.toString()}_email_address_input'),
initialValue: _getListEmailAddressCurrent(prefixEmailAddress),
autofocus: prefixEmailAddress == PrefixEmailAddress.to ? true : false,
textStyle: TextStyle(color: AppColor.nameUserColor, fontSize: 14, fontWeight: FontWeight.w500),
cursorColor: AppColor.primaryColor,
decoration: InputDecoration(