feat: Added sending thread messages and fixed padding issues
This commit is contained in:
@@ -194,7 +194,7 @@ class MessageInputState extends State<MessageInput> {
|
|||||||
),
|
),
|
||||||
if(widget.parentMessage != null)
|
if(widget.parentMessage != null)
|
||||||
Padding(
|
Padding(
|
||||||
padding: const EdgeInsets.all(8.0),
|
padding: const EdgeInsets.symmetric(horizontal: 8.0),
|
||||||
child: _buildDmCheckbox(),
|
child: _buildDmCheckbox(),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
@@ -206,7 +206,7 @@ class MessageInputState extends State<MessageInput> {
|
|||||||
Flex _buildTextField(BuildContext context) {
|
Flex _buildTextField(BuildContext context) {
|
||||||
return Flex(
|
return Flex(
|
||||||
direction: Axis.horizontal,
|
direction: Axis.horizontal,
|
||||||
crossAxisAlignment: CrossAxisAlignment.end,
|
crossAxisAlignment: CrossAxisAlignment.center,
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
if (!_commandEnabled) _buildExpandActionsButton(),
|
if (!_commandEnabled) _buildExpandActionsButton(),
|
||||||
if (widget.actionsLocation == ActionsLocation.left)
|
if (widget.actionsLocation == ActionsLocation.left)
|
||||||
@@ -792,11 +792,12 @@ class MessageInputState extends State<MessageInput> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Widget _buildAttachmentButton() {
|
Widget _buildAttachmentButton() {
|
||||||
|
var padding = widget.editMessage == null ? 4.0 : 8.0;
|
||||||
return Center(
|
return Center(
|
||||||
child: InkWell(
|
child: InkWell(
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: const EdgeInsets.only(
|
padding: EdgeInsets.only(
|
||||||
left: 8.0, right: 4.0, top: 8.0, bottom: 8.0),
|
left: 8.0, right: padding, top: 8.0, bottom: 8.0),
|
||||||
child: Icon(StreamIcons.attach),
|
child: Icon(StreamIcons.attach),
|
||||||
),
|
),
|
||||||
onTap: () {
|
onTap: () {
|
||||||
@@ -1082,6 +1083,7 @@ class MessageInputState extends State<MessageInput> {
|
|||||||
_messageIsPresent = false;
|
_messageIsPresent = false;
|
||||||
_typingStarted = false;
|
_typingStarted = false;
|
||||||
_commandEnabled = false;
|
_commandEnabled = false;
|
||||||
|
_sendAsDm = false;
|
||||||
});
|
});
|
||||||
|
|
||||||
_commandsOverlay?.remove();
|
_commandsOverlay?.remove();
|
||||||
@@ -1107,6 +1109,7 @@ class MessageInputState extends State<MessageInput> {
|
|||||||
attachments: _getAttachments(attachments).toList(),
|
attachments: _getAttachments(attachments).toList(),
|
||||||
mentionedUsers:
|
mentionedUsers:
|
||||||
_mentionedUsers.where((u) => text.contains('@${u.name}')).toList(),
|
_mentionedUsers.where((u) => text.contains('@${u.name}')).toList(),
|
||||||
|
showInChannel: widget.parentMessage != null ? _sendAsDm : null,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user