chore: divider when scrolled up

This commit is contained in:
krille-chan 2025-03-09 16:07:08 +01:00
commit 8956f81e4e
No known key found for this signature in database

View file

@ -283,13 +283,14 @@ class ChatView extends StatelessWidget {
child: ChatEventList(controller: controller), child: ChatEventList(controller: controller),
), ),
), ),
if (controller.showScrollDownButton)
Divider(
height: 1,
color: theme.dividerColor,
),
if (controller.room.isExtinct) if (controller.room.isExtinct)
Container( Container(
margin: EdgeInsets.only( margin: EdgeInsets.all(bottomSheetPadding),
bottom: bottomSheetPadding,
left: bottomSheetPadding,
right: bottomSheetPadding,
),
width: double.infinity, width: double.infinity,
child: ElevatedButton.icon( child: ElevatedButton.icon(
icon: const Icon(Icons.chevron_right), icon: const Icon(Icons.chevron_right),
@ -300,11 +301,7 @@ class ChatView extends StatelessWidget {
else if (controller.room.canSendDefaultMessages && else if (controller.room.canSendDefaultMessages &&
controller.room.membership == Membership.join) controller.room.membership == Membership.join)
Container( Container(
margin: EdgeInsets.only( margin: EdgeInsets.all(bottomSheetPadding),
bottom: bottomSheetPadding,
left: bottomSheetPadding,
right: bottomSheetPadding,
),
constraints: const BoxConstraints( constraints: const BoxConstraints(
maxWidth: FluffyThemes.columnWidth * 2.5, maxWidth: FluffyThemes.columnWidth * 2.5,
), ),