[ReplyMessageWidget] remove expanded width
Signed-off-by: Sahil Kumar <[email protected]>
This commit is contained in:
@@ -405,6 +405,7 @@ class MessageInputState extends State<MessageInput> {
|
|||||||
),
|
),
|
||||||
child: Column(
|
child: Column(
|
||||||
mainAxisSize: MainAxisSize.min,
|
mainAxisSize: MainAxisSize.min,
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
children: [
|
children: [
|
||||||
_buildRepyToMessage(),
|
_buildRepyToMessage(),
|
||||||
_buildAttachments(),
|
_buildAttachments(),
|
||||||
|
|||||||
@@ -117,8 +117,9 @@ class ReplyMessageWidget extends StatelessWidget {
|
|||||||
padding: const EdgeInsets.only(top: 8, bottom: 6, right: 4, left: 8),
|
padding: const EdgeInsets.only(top: 8, bottom: 6, right: 4, left: 8),
|
||||||
child: Row(
|
child: Row(
|
||||||
crossAxisAlignment: CrossAxisAlignment.end,
|
crossAxisAlignment: CrossAxisAlignment.end,
|
||||||
|
mainAxisSize: MainAxisSize.min,
|
||||||
children: [
|
children: [
|
||||||
Expanded(child: _buildMessage(context)),
|
Flexible(child: _buildMessage(context)),
|
||||||
SizedBox(width: 4),
|
SizedBox(width: 4),
|
||||||
_buildUserAvatar(),
|
_buildUserAvatar(),
|
||||||
],
|
],
|
||||||
@@ -132,7 +133,7 @@ class ReplyMessageWidget extends StatelessWidget {
|
|||||||
_parseAttachments(context),
|
_parseAttachments(context),
|
||||||
SizedBox(width: 8),
|
SizedBox(width: 8),
|
||||||
],
|
],
|
||||||
Expanded(child: _buildTextMessage()),
|
Flexible(child: _buildTextMessage()),
|
||||||
];
|
];
|
||||||
return Container(
|
return Container(
|
||||||
constraints: BoxConstraints(
|
constraints: BoxConstraints(
|
||||||
@@ -151,6 +152,7 @@ class ReplyMessageWidget extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
padding: const EdgeInsets.all(8),
|
padding: const EdgeInsets.all(8),
|
||||||
child: Row(
|
child: Row(
|
||||||
|
mainAxisSize: MainAxisSize.min,
|
||||||
mainAxisAlignment:
|
mainAxisAlignment:
|
||||||
reverse ? MainAxisAlignment.end : MainAxisAlignment.start,
|
reverse ? MainAxisAlignment.end : MainAxisAlignment.start,
|
||||||
children: reverse ? children.reversed.toList() : children,
|
children: reverse ? children.reversed.toList() : children,
|
||||||
|
|||||||
Reference in New Issue
Block a user