chore: Follow up design
This commit is contained in:
parent
133e7ab955
commit
6b4ed7bdc8
3 changed files with 7 additions and 8 deletions
|
|
@ -51,7 +51,7 @@ class ChatEventList extends StatelessWidget {
|
||||||
child: ListView.custom(
|
child: ListView.custom(
|
||||||
padding: EdgeInsets.only(
|
padding: EdgeInsets.only(
|
||||||
top: 16,
|
top: 16,
|
||||||
bottom: 0,
|
bottom: 8,
|
||||||
left: horizontalPadding,
|
left: horizontalPadding,
|
||||||
right: horizontalPadding,
|
right: horizontalPadding,
|
||||||
),
|
),
|
||||||
|
|
|
||||||
|
|
@ -290,15 +290,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.canSendDefaultMessages &&
|
if (controller.room.canSendDefaultMessages &&
|
||||||
controller.room.membership == Membership.join)
|
controller.room.membership == Membership.join)
|
||||||
Container(
|
Container(
|
||||||
margin: EdgeInsets.all(bottomSheetPadding),
|
margin: EdgeInsets.only(
|
||||||
|
bottom: bottomSheetPadding,
|
||||||
|
left: bottomSheetPadding,
|
||||||
|
right: bottomSheetPadding,
|
||||||
|
),
|
||||||
constraints: const BoxConstraints(
|
constraints: const BoxConstraints(
|
||||||
maxWidth: FluffyThemes.columnWidth * 2.5,
|
maxWidth: FluffyThemes.columnWidth * 2.5,
|
||||||
),
|
),
|
||||||
|
|
|
||||||
|
|
@ -339,7 +339,7 @@ class ChatListItem extends StatelessWidget {
|
||||||
: snapshot.data ??
|
: snapshot.data ??
|
||||||
L10n.of(context).emptyChat,
|
L10n.of(context).emptyChat,
|
||||||
softWrap: false,
|
softWrap: false,
|
||||||
maxLines: 1,
|
maxLines: room.hasNewMessages ? 2 : 1,
|
||||||
overflow: TextOverflow.ellipsis,
|
overflow: TextOverflow.ellipsis,
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontWeight: unread || room.hasNewMessages
|
fontWeight: unread || room.hasNewMessages
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue