From 8956f81e4e24e5ab01f7db5d18e8b3d570048582 Mon Sep 17 00:00:00 2001 From: krille-chan Date: Sun, 9 Mar 2025 16:07:08 +0100 Subject: [PATCH] chore: divider when scrolled up --- lib/pages/chat/chat_view.dart | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/lib/pages/chat/chat_view.dart b/lib/pages/chat/chat_view.dart index 7572eb6cf..3580a6941 100644 --- a/lib/pages/chat/chat_view.dart +++ b/lib/pages/chat/chat_view.dart @@ -283,13 +283,14 @@ class ChatView extends StatelessWidget { child: ChatEventList(controller: controller), ), ), + if (controller.showScrollDownButton) + Divider( + height: 1, + color: theme.dividerColor, + ), if (controller.room.isExtinct) Container( - margin: EdgeInsets.only( - bottom: bottomSheetPadding, - left: bottomSheetPadding, - right: bottomSheetPadding, - ), + margin: EdgeInsets.all(bottomSheetPadding), width: double.infinity, child: ElevatedButton.icon( icon: const Icon(Icons.chevron_right), @@ -300,11 +301,7 @@ class ChatView extends StatelessWidget { else if (controller.room.canSendDefaultMessages && controller.room.membership == Membership.join) Container( - margin: EdgeInsets.only( - bottom: bottomSheetPadding, - left: bottomSheetPadding, - right: bottomSheetPadding, - ), + margin: EdgeInsets.all(bottomSheetPadding), constraints: const BoxConstraints( maxWidth: FluffyThemes.columnWidth * 2.5, ),