From d640bce7a91412bbe68f3b78cf97a5ec281e097c Mon Sep 17 00:00:00 2001 From: Kelrap Date: Tue, 23 Jul 2024 09:11:28 -0400 Subject: [PATCH] Keep reply bar same length/style as input --- lib/pages/chat/chat_view.dart | 34 ++++++++++++++++++++++++++++++---- 1 file changed, 30 insertions(+), 4 deletions(-) diff --git a/lib/pages/chat/chat_view.dart b/lib/pages/chat/chat_view.dart index e99e6a389..b032caaf7 100644 --- a/lib/pages/chat/chat_view.dart +++ b/lib/pages/chat/chat_view.dart @@ -346,11 +346,37 @@ class ChatView extends StatelessWidget { ), ], ), - const ConnectionStatusHeader(), - ITBar( - choreographer: controller.choreographer, + Container( + margin: EdgeInsets.only( + bottom: bottomSheetPadding, + left: bottomSheetPadding, + right: bottomSheetPadding, + ), + constraints: const BoxConstraints( + maxWidth: + FluffyThemes.columnWidth * 2.5, + ), + alignment: Alignment.center, + child: Material( + clipBehavior: Clip.hardEdge, + color: Theme.of(context) + .colorScheme + .surfaceContainerHighest, + borderRadius: const BorderRadius.all( + Radius.circular(24), + ), + child: Column( + children: [ + const ConnectionStatusHeader(), + ITBar( + choreographer: + controller.choreographer, + ), + ReplyDisplay(controller), + ], + ), + ), ), - ReplyDisplay(controller), ], ), ),