From 9efc3e3c4a8002726eca4b77fe699e3c174760e7 Mon Sep 17 00:00:00 2001 From: Sarah Jamie Lewis Date: Fri, 9 Feb 2024 13:49:00 -0800 Subject: [PATCH] Fix Width Calc --- lib/widgets/filebubble.dart | 1 + lib/widgets/messagerow.dart | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/widgets/filebubble.dart b/lib/widgets/filebubble.dart index fb7a102c..00f1e67f 100644 --- a/lib/widgets/filebubble.dart +++ b/lib/widgets/filebubble.dart @@ -228,6 +228,7 @@ class FileBubbleState extends State { } return Container( + constraints: BoxConstraints(maxWidth: MediaQuery.sizeOf(context).width * 0.3), decoration: BoxDecoration( color: fromMe ? Provider.of(context).theme.messageFromMeBackgroundColor : Provider.of(context).theme.messageFromOtherBackgroundColor, border: Border.all(color: fromMe ? Provider.of(context).theme.messageFromMeBackgroundColor : Provider.of(context).theme.messageFromOtherBackgroundColor, width: 1), diff --git a/lib/widgets/messagerow.dart b/lib/widgets/messagerow.dart index 0385bade..300a05d0 100644 --- a/lib/widgets/messagerow.dart +++ b/lib/widgets/messagerow.dart @@ -63,7 +63,7 @@ class MessageRowState extends State with SingleTickerProviderStateMi var isContact = Provider.of(context).contactList.findContact(Provider.of(context).senderHandle) != null; var isGroup = Provider.of(context).contactList.getContact(Provider.of(context, listen: false).conversationIdentifier)!.isGroup; var isBlocked = isContact ? Provider.of(context).contactList.findContact(Provider.of(context).senderHandle)!.isBlocked : false; - var actualMessage = Flexible(flex: Platform.isAndroid ? 10 : 7, fit: FlexFit.loose, child: widget.child); + var actualMessage = Flexible(flex: Platform.isAndroid ? 10 : 100, fit: FlexFit.loose, child: widget.child); _dragAffinity = fromMe ? Alignment.centerRight : Alignment.centerLeft; _dragAlignment = fromMe ? Alignment.centerRight : Alignment.centerLeft;