Skip to content

Commit 3e058ab

Browse files
committed
wip nfc make text color static
1 parent 6b8a02a commit 3e058ab

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/widgets/message_list.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -474,13 +474,13 @@ class DateSeparator extends StatelessWidget {
474474

475475
final Message message;
476476

477+
// This color matches recipient headers. TODO is that what we want?
478+
static final _textColor = Colors.black.withOpacity(0.4);
479+
477480
@override
478481
Widget build(BuildContext context) {
479482
final zulipLocalizations = ZulipLocalizations.of(context);
480483

481-
// This color matches recipient headers. TODO is that what we want?
482-
final color = Colors.black.withOpacity(0.4);
483-
484484
return ColoredBox(color: Colors.white,
485485
child: Padding(
486486
padding: const EdgeInsets.symmetric(vertical: 8, horizontal: 2),
@@ -497,7 +497,7 @@ class DateSeparator extends StatelessWidget {
497497
// TODO dedupe with RecipientHeaderDate
498498
child: Text(
499499
style: TextStyle(
500-
color: color,
500+
color: _textColor,
501501
fontFamily: 'Source Sans 3',
502502
fontSize: 16,
503503
// In Figma this has a line-height of 19, but using 18

0 commit comments

Comments
 (0)