Skip to content

Commit 4c88148

Browse files
committed
msglist [nfc]: Remove RecipientHeaderDate unnecessary color param
We're about to make this color follow web, and web's color doesn't differ between stream and DM recipient headers either.
1 parent 20c08c8 commit 4c88148

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

lib/widgets/message_list.dart

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -727,8 +727,7 @@ class StreamMessageRecipientHeader extends StatelessWidget {
727727
style: recipientHeaderTextStyle(context)))),
728728
// TODO topic links?
729729
// Then web also has edit/resolve/mute buttons. Skip those for mobile.
730-
RecipientHeaderDate(message: message,
731-
color: Colors.black.withOpacity(0.4)),
730+
RecipientHeaderDate(message: message),
732731
])));
733732
}
734733
}
@@ -772,8 +771,7 @@ class DmRecipientHeader extends StatelessWidget {
772771
child: Text(title,
773772
style: recipientHeaderTextStyle(context),
774773
overflow: TextOverflow.ellipsis)),
775-
RecipientHeaderDate(message: message,
776-
color: Colors.black.withOpacity(0.4)),
774+
RecipientHeaderDate(message: message),
777775
]))));
778776
}
779777
}
@@ -794,17 +792,16 @@ TextStyle recipientHeaderTextStyle(BuildContext context) {
794792
final _kRecipientHeaderTextColor = const HSLColor.fromAHSL(1, 0, 0, 0.15).toColor();
795793

796794
class RecipientHeaderDate extends StatelessWidget {
797-
const RecipientHeaderDate({super.key, required this.message, required this.color});
795+
const RecipientHeaderDate({super.key, required this.message});
798796

799797
final Message message;
800-
final Color color;
801798

802799
@override
803800
Widget build(BuildContext context) {
804801
return Padding(
805802
padding: const EdgeInsets.fromLTRB(10, 0, 16, 0),
806803
child: DateText(
807-
color: color,
804+
color: Colors.black.withOpacity(0.4),
808805
fontSize: 16,
809806
// In Figma this has a line-height of 19, but using 18
810807
// here to match the stream/topic text widgets helps

0 commit comments

Comments
 (0)