From f85cf6bb16ff6d7353d9d463f4f55240429b3af0 Mon Sep 17 00:00:00 2001 From: Deven Joshi Date: Tue, 15 Dec 2020 20:18:13 +0530 Subject: [PATCH] qa fix for file list --- lib/src/message_input.dart | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/lib/src/message_input.dart b/lib/src/message_input.dart index 447d49d9..dec2b033 100644 --- a/lib/src/message_input.dart +++ b/lib/src/message_input.dart @@ -1287,10 +1287,11 @@ class MessageInputState extends State { children: [ if (_attachments.any((e) => e.attachment?.type == 'file')) LimitedBox( - maxHeight: 73.0, + maxHeight: 136.0, child: ListView( - scrollDirection: Axis.horizontal, - children: _attachments + reverse: true, + shrinkWrap: true, + children: _attachments.reversed .where((e) => e.attachment?.type == 'file') .map( (e) => Padding( @@ -1304,8 +1305,8 @@ class MessageInputState extends State { attachmentType: FileAttachmentType.local, file: e.file, size: Size( - MediaQuery.of(context).size.width * 0.55, - MediaQuery.of(context).size.height * 0.3, + MediaQuery.of(context).size.width * 0.65, + 56.0, ), trailing: Padding( padding: const EdgeInsets.all(8.0),