TF-74 Fix bug keep only one input focus on composer at one time

This commit is contained in:
dab246
2021-09-10 14:27:17 +07:00
committed by Dat H. Pham
parent bb264d9a08
commit d8e9fff15f
2 changed files with 7 additions and 6 deletions
@@ -60,6 +60,7 @@ class TextFieldBuilder {
textInputAction: _textInputAction, textInputAction: _textInputAction,
decoration: _inputDecoration, decoration: _inputDecoration,
maxLines: _maxLines, maxLines: _maxLines,
keyboardAppearance: Brightness.light,
style: _textStyle ?? TextStyle(color: AppColor.textFieldTextColor), style: _textStyle ?? TextStyle(color: AppColor.textFieldTextColor),
obscureText: _obscureText ?? false, obscureText: _obscureText ?? false,
); );
@@ -141,13 +141,13 @@ class ComposerView extends GetWidget<ComposerController> {
initialText: controller.getEmailActionType() != EmailActionType.compose initialText: controller.getEmailActionType() != EmailActionType.compose
? controller.getBodyEmailQuotedAsHtml(context, htmlMessagePurifier) ? controller.getBodyEmailQuotedAsHtml(context, htmlMessagePurifier)
: null, : null,
disableHorizontalScroll: false,
supportZoom: true,
horizontalScrollBarEnabled: true,
shouldEnsureVisible: true), shouldEnsureVisible: true),
otherOptions: OtherOptions( otherOptions: OtherOptions(decoration: BoxDecoration()),
decoration: BoxDecoration(), callbacks: Callbacks(
height: 600) onFocus: () {
FocusScope.of(context).unfocus();
}
),
)); ));
} }
} }