TF-74 Fix bug keep only one input focus on composer at one time
This commit is contained in:
@@ -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();
|
||||||
|
}
|
||||||
|
),
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user