Merge branch 'feature/new-ui' of github.com:GetStream/stream-chat-flutter into feat/two-way-pagination

This commit is contained in:
Sahil Kumar
2020-12-16 19:10:49 +05:30
+6 -5
View File
@@ -1287,10 +1287,11 @@ class MessageInputState extends State<MessageInput> {
children: [ children: [
if (_attachments.any((e) => e.attachment?.type == 'file')) if (_attachments.any((e) => e.attachment?.type == 'file'))
LimitedBox( LimitedBox(
maxHeight: 73.0, maxHeight: 136.0,
child: ListView( child: ListView(
scrollDirection: Axis.horizontal, reverse: true,
children: _attachments shrinkWrap: true,
children: _attachments.reversed
.where((e) => e.attachment?.type == 'file') .where((e) => e.attachment?.type == 'file')
.map( .map(
(e) => Padding( (e) => Padding(
@@ -1304,8 +1305,8 @@ class MessageInputState extends State<MessageInput> {
attachmentType: FileAttachmentType.local, attachmentType: FileAttachmentType.local,
file: e.file, file: e.file,
size: Size( size: Size(
MediaQuery.of(context).size.width * 0.55, MediaQuery.of(context).size.width * 0.65,
MediaQuery.of(context).size.height * 0.3, 56.0,
), ),
trailing: Padding( trailing: Padding(
padding: const EdgeInsets.all(8.0), padding: const EdgeInsets.all(8.0),