From 8e960f1b435eeb1d6950b098448bc6f16ca78321 Mon Sep 17 00:00:00 2001 From: Kelrap Date: Wed, 14 Aug 2024 10:58:59 -0400 Subject: [PATCH] Make entirety of overlay message box scrollable --- lib/pangea/widgets/chat/overlay_message.dart | 44 ++++++++++---------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/lib/pangea/widgets/chat/overlay_message.dart b/lib/pangea/widgets/chat/overlay_message.dart index 701bbf258..3f8869399 100644 --- a/lib/pangea/widgets/chat/overlay_message.dart +++ b/lib/pangea/widgets/chat/overlay_message.dart @@ -101,29 +101,29 @@ class OverlayMessage extends StatelessWidget { ownMessage: ownMessage, ); - return SingleChildScrollView( - child: Material( - color: noBubble ? Colors.transparent : color, - clipBehavior: Clip.antiAlias, - shape: RoundedRectangleBorder( - borderRadius: borderRadius, + return Material( + color: noBubble ? Colors.transparent : color, + clipBehavior: Clip.antiAlias, + shape: RoundedRectangleBorder( + borderRadius: borderRadius, + ), + child: Container( + decoration: BoxDecoration( + borderRadius: BorderRadius.circular( + AppConfig.borderRadius, + ), ), - child: Container( - decoration: BoxDecoration( - borderRadius: BorderRadius.circular( - AppConfig.borderRadius, - ), - ), - padding: noBubble || noPadding - ? EdgeInsets.zero - : const EdgeInsets.symmetric( - horizontal: 16, - vertical: 8, - ), - constraints: BoxConstraints( - maxWidth: width ?? FluffyThemes.columnWidth * 1.25, - maxHeight: maxHeight, - ), + padding: noBubble || noPadding + ? EdgeInsets.zero + : const EdgeInsets.symmetric( + horizontal: 16, + vertical: 8, + ), + constraints: BoxConstraints( + maxWidth: width ?? FluffyThemes.columnWidth * 1.25, + maxHeight: maxHeight, + ), + child: SingleChildScrollView( child: Column( mainAxisSize: MainAxisSize.min, crossAxisAlignment: CrossAxisAlignment.start,