fixes #483: Keyboard covers input text box when editing message
This commit is contained in:
@@ -625,48 +625,51 @@ class _MessageActionsModalState extends State<MessageActionsModal> {
|
|||||||
topRight: Radius.circular(16),
|
topRight: Radius.circular(16),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
builder: (context) => StreamChannel(
|
builder: (context) => Padding(
|
||||||
channel: channel,
|
padding: MediaQuery.of(context).viewInsets,
|
||||||
child: Flex(
|
child: StreamChannel(
|
||||||
direction: Axis.vertical,
|
channel: channel,
|
||||||
mainAxisAlignment: MainAxisAlignment.end,
|
child: Flex(
|
||||||
mainAxisSize: MainAxisSize.min,
|
direction: Axis.vertical,
|
||||||
children: <Widget>[
|
mainAxisAlignment: MainAxisAlignment.end,
|
||||||
Padding(
|
mainAxisSize: MainAxisSize.min,
|
||||||
padding: const EdgeInsets.fromLTRB(8, 8, 8, 0),
|
children: <Widget>[
|
||||||
child: Row(
|
Padding(
|
||||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
padding: const EdgeInsets.fromLTRB(8, 8, 8, 0),
|
||||||
children: <Widget>[
|
child: Row(
|
||||||
Padding(
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||||
padding: const EdgeInsets.all(8),
|
children: <Widget>[
|
||||||
child: StreamSvgIcon.edit(
|
Padding(
|
||||||
color: streamChatThemeData.colorTheme.greyGainsboro,
|
padding: const EdgeInsets.all(8),
|
||||||
|
child: StreamSvgIcon.edit(
|
||||||
|
color: streamChatThemeData.colorTheme.greyGainsboro,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
const Text(
|
||||||
const Text(
|
'Edit Message',
|
||||||
'Edit Message',
|
style: TextStyle(fontWeight: FontWeight.bold),
|
||||||
style: TextStyle(fontWeight: FontWeight.bold),
|
),
|
||||||
),
|
IconButton(
|
||||||
IconButton(
|
visualDensity: VisualDensity.compact,
|
||||||
visualDensity: VisualDensity.compact,
|
icon: StreamSvgIcon.closeSmall(),
|
||||||
icon: StreamSvgIcon.closeSmall(),
|
onPressed: Navigator.of(context).pop,
|
||||||
onPressed: Navigator.of(context).pop,
|
),
|
||||||
),
|
],
|
||||||
],
|
),
|
||||||
),
|
),
|
||||||
),
|
if (widget.editMessageInputBuilder != null)
|
||||||
if (widget.editMessageInputBuilder != null)
|
widget.editMessageInputBuilder!(context, widget.message)
|
||||||
widget.editMessageInputBuilder!(context, widget.message)
|
else
|
||||||
else
|
MessageInput(
|
||||||
MessageInput(
|
editMessage: widget.message,
|
||||||
editMessage: widget.message,
|
preMessageSending: (m) {
|
||||||
preMessageSending: (m) {
|
FocusScope.of(context).unfocus();
|
||||||
FocusScope.of(context).unfocus();
|
Navigator.pop(context);
|
||||||
Navigator.pop(context);
|
return m;
|
||||||
return m;
|
},
|
||||||
},
|
),
|
||||||
),
|
],
|
||||||
],
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user