TF-2191 Fix keyboard disappear when switch focus from subject to body in composer android
(cherry picked from commit 880c7f1ae9e96c5b3dedaca01bf3736e7dd869d4)
This commit is contained in:
@@ -58,6 +58,7 @@ class RecipientComposerWidget extends StatefulWidget {
|
||||
final VoidCallback? onFocusNextAddressAction;
|
||||
final EdgeInsetsGeometry? padding;
|
||||
final EdgeInsetsGeometry? margin;
|
||||
final TapRegionCallback? onTapOutside;
|
||||
|
||||
const RecipientComposerWidget({
|
||||
super.key,
|
||||
@@ -82,6 +83,7 @@ class RecipientComposerWidget extends StatefulWidget {
|
||||
this.onFocusEmailAddressChangeAction,
|
||||
this.onFocusNextAddressAction,
|
||||
this.onRemoveDraggableEmailAddressAction,
|
||||
this.onTapOutside,
|
||||
});
|
||||
|
||||
@override
|
||||
@@ -180,6 +182,7 @@ class _RecipientComposerWidgetState extends State<RecipientComposerWidget> {
|
||||
onDeleteTagAction: () => _handleDeleteLatestTagAction.call(stateSetter),
|
||||
onSelectOptionAction: (item) => _handleSelectOptionAction.call(item, stateSetter),
|
||||
onSubmitted: (value) => _handleSubmitTagAction.call(value, stateSetter),
|
||||
onTapOutside: widget.onTapOutside,
|
||||
inputDecoration: const InputDecoration(border: InputBorder.none),
|
||||
tagBuilder: (context, index) {
|
||||
final currentEmailAddress = _currentListEmailAddress[index];
|
||||
@@ -253,6 +256,7 @@ class _RecipientComposerWidgetState extends State<RecipientComposerWidget> {
|
||||
onDeleteTagAction: () => _handleDeleteLatestTagAction.call(stateSetter),
|
||||
onSelectOptionAction: (item) => _handleSelectOptionAction.call(item, stateSetter),
|
||||
onSubmitted: (value) => _handleSubmitTagAction.call(value, stateSetter),
|
||||
onTapOutside: widget.onTapOutside,
|
||||
inputDecoration: const InputDecoration(border: InputBorder.none),
|
||||
tagBuilder: (context, index) {
|
||||
final currentEmailAddress = _currentListEmailAddress[index];
|
||||
|
||||
@@ -11,6 +11,7 @@ class SubjectComposerWidget extends StatelessWidget {
|
||||
final ValueChanged<String>? onTextChange;
|
||||
final EdgeInsetsGeometry? margin;
|
||||
final EdgeInsetsGeometry? padding;
|
||||
final TapRegionCallback? onTapOutside;
|
||||
|
||||
const SubjectComposerWidget({
|
||||
super.key,
|
||||
@@ -19,6 +20,7 @@ class SubjectComposerWidget extends StatelessWidget {
|
||||
required this.onTextChange,
|
||||
this.margin,
|
||||
this.padding,
|
||||
this.onTapOutside,
|
||||
});
|
||||
|
||||
@override
|
||||
@@ -50,6 +52,7 @@ class SubjectComposerWidget extends StatelessWidget {
|
||||
textDirection: DirectionUtils.getDirectionByLanguage(context),
|
||||
textStyle: SubjectComposerWidgetStyle.inputTextStyle,
|
||||
controller: textController,
|
||||
onTapOutside: onTapOutside,
|
||||
)
|
||||
)
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user