Merge branch 'feature/new-ui' into nash/llc-example

This commit is contained in:
Salvatore Giordano
2021-01-20 16:31:31 +01:00
committed by GitHub
3 changed files with 9 additions and 3 deletions
@@ -1,6 +1,6 @@
name: example
description: A new Flutter project.
version: 1.1.3
version: 1.1.3+1
publish_to: 'none'
environment:
@@ -62,7 +62,13 @@ class _FileAttachmentState extends State<FileAttachment> {
child: Container(
width: widget.size?.width ?? 100,
height: 56.0,
color: StreamChatTheme.of(context).colorTheme.white,
decoration: BoxDecoration(
color: StreamChatTheme.of(context).colorTheme.white,
borderRadius: BorderRadius.circular(12),
border: Border.all(
color: StreamChatTheme.of(context).colorTheme.greyWhisper,
),
),
child: Row(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
@@ -1998,7 +1998,7 @@ class MessageInputState extends State<MessageInput> {
_attachments.add(attachment);
});
if (file.size > _kMaxAttachmentSize) {
if (file.size / 1024 > _kMaxAttachmentSize) {
if (attachmentType == 'video') {
final mediaInfo = await CompressVideoService.compressVideo(file.path);
file = PlatformFile(