@@ -475,6 +475,7 @@ class MarkAsReadWidget extends StatelessWidget {
475
475
padding: const EdgeInsets .symmetric (horizontal: 10 , vertical: 10 - ((48 - 38 ) / 2 )),
476
476
child: FilledButton .icon (
477
477
style: FilledButton .styleFrom (
478
+ // TODO(#95) need dark-theme colors (foreground and background)
478
479
backgroundColor: _UnreadMarker .color,
479
480
minimumSize: const Size .fromHeight (38 ),
480
481
textStyle:
@@ -519,6 +520,9 @@ class DateSeparator extends StatelessWidget {
519
520
520
521
final Message message;
521
522
523
+ // TODO(#95) in dark theme, use white, following web
524
+ static const _line = BorderSide (width: 0 , color: Colors .black);
525
+
522
526
@override
523
527
Widget build (BuildContext context) {
524
528
// This makes the small-caps text vertically centered,
@@ -534,9 +538,7 @@ class DateSeparator extends StatelessWidget {
534
538
child: DecoratedBox (
535
539
decoration: BoxDecoration (
536
540
border: Border (
537
- bottom: BorderSide (
538
- width: 0 ,
539
- color: Colors .black)))))),
541
+ bottom: _line))))),
540
542
Padding (padding: const EdgeInsets .fromLTRB (2 , 0 , 2 , textBottomPadding),
541
543
child: DateText (
542
544
fontSize: 16 ,
@@ -546,9 +548,7 @@ class DateSeparator extends StatelessWidget {
546
548
child: DecoratedBox (
547
549
decoration: BoxDecoration (
548
550
border: Border (
549
- bottom: BorderSide (
550
- width: 0 ,
551
- color: Colors .black)))))
551
+ bottom: _line)))),
552
552
])),
553
553
);
554
554
}
@@ -881,6 +881,7 @@ class MessageWithPossibleSender extends StatelessWidget {
881
881
882
882
final MessageListMessageItem item;
883
883
884
+ // TODO(#95) unchanged in dark theme?
884
885
static final _starColor = const HSLColor .fromAHSL (0.5 , 47 , 1 , 0.41 ).toColor ();
885
886
886
887
@override
@@ -973,6 +974,7 @@ class MessageWithPossibleSender extends StatelessWidget {
973
974
// TODO web seems to ignore locale in formatting time, but we could do better
974
975
final _kMessageTimestampFormat = DateFormat ('h:mm aa' , 'en_US' );
975
976
977
+ // TODO(#95) need dark-theme color (this one comes from the Figma)
976
978
final _kMessageTimestampColor = const HSLColor .fromAHSL (1 , 0 , 0 , 0.5 ).toColor ();
977
979
978
980
Future <void > markNarrowAsRead (
0 commit comments