Skip to content

Commit 412233c

Browse files
committed
msglist: Make DM recipient headers opaque and bordered
Otherwise it can look fairly glitchy when it functions as a sticky header, overlaying part of the message content or the gutter between its message and the next message.
1 parent 1623c3e commit 412233c

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

lib/widgets/message_list.dart

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -468,12 +468,16 @@ class DmRecipientHeader extends StatelessWidget {
468468
Navigator.push(context,
469469
MessageListPage.buildRoute(context: context, narrow: narrow));
470470
},
471-
child: Align(
472-
alignment: Alignment.centerLeft,
473-
child: RecipientHeaderChevronContainer(
474-
color: _kDmRecipientHeaderColor,
475-
child: const Text("Direct message", // TODO DM recipient headers
476-
style: TextStyle(color: Colors.white)))));
471+
child: DecoratedBox(
472+
decoration: BoxDecoration(
473+
color: Colors.white,
474+
border: Border.all(color: _kDmRecipientHeaderColor)),
475+
child: Align(
476+
alignment: Alignment.centerLeft,
477+
child: RecipientHeaderChevronContainer(
478+
color: _kDmRecipientHeaderColor,
479+
child: const Text("Direct message", // TODO DM recipient headers
480+
style: TextStyle(color: Colors.white))))));
477481
}
478482
}
479483

0 commit comments

Comments
 (0)