fix: attachments ui

This commit is contained in:
Deven Joshi
2020-10-26 15:46:47 +05:30
parent b93b7fd853
commit 5095b8e3c3
+7 -2
View File
@@ -252,6 +252,10 @@ class MessageInputState extends State<MessageInput> {
child: Center(
child: LimitedBox(
maxHeight: widget.maxHeight,
child: Container(
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(8.0),
),
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
@@ -344,6 +348,7 @@ class MessageInputState extends State<MessageInput> {
),
),
),
),
);
}
@@ -592,8 +597,8 @@ class MessageInputState extends State<MessageInput> {
}
Widget _buildAttachments() {
return ListView(
scrollDirection: Axis.horizontal,
return Wrap(
direction: Axis.horizontal,
children: _attachments
.map(
(attachment) => Padding(