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: Center(
child: LimitedBox( child: LimitedBox(
maxHeight: widget.maxHeight, maxHeight: widget.maxHeight,
child: Container(
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(8.0),
),
child: Column( child: Column(
mainAxisSize: MainAxisSize.min, mainAxisSize: MainAxisSize.min,
children: [ children: [
@@ -344,6 +348,7 @@ class MessageInputState extends State<MessageInput> {
), ),
), ),
), ),
),
); );
} }
@@ -592,8 +597,8 @@ class MessageInputState extends State<MessageInput> {
} }
Widget _buildAttachments() { Widget _buildAttachments() {
return ListView( return Wrap(
scrollDirection: Axis.horizontal, direction: Axis.horizontal,
children: _attachments children: _attachments
.map( .map(
(attachment) => Padding( (attachment) => Padding(