Skip to content

Commit cacab65

Browse files
committed
msglist [nfc]: Remove DateText unnecessary color param
1 parent 07fd507 commit cacab65

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

lib/widgets/message_list.dart

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,6 @@ class DateSeparator extends StatelessWidget {
539539
color: Colors.black)))))),
540540
Padding(padding: const EdgeInsets.fromLTRB(2, 0, 2, textBottomPadding),
541541
child: DateText(
542-
color: const HSLColor.fromAHSL(0.75, 0, 0, 0.15).toColor(),
543542
fontSize: 16,
544543
height: (16 / 16),
545544
timestamp: message.timestamp)),
@@ -798,7 +797,6 @@ class RecipientHeaderDate extends StatelessWidget {
798797
return Padding(
799798
padding: const EdgeInsets.fromLTRB(10, 0, 16, 0),
800799
child: DateText(
801-
color: const HSLColor.fromAHSL(0.75, 0, 0, 0.15).toColor(),
802800
fontSize: 16,
803801
// In Figma this has a line-height of 19, but using 18
804802
// here to match the stream/topic text widgets helps
@@ -811,13 +809,11 @@ class RecipientHeaderDate extends StatelessWidget {
811809
class DateText extends StatelessWidget {
812810
const DateText({
813811
super.key,
814-
required this.color,
815812
required this.fontSize,
816813
required this.height,
817814
required this.timestamp,
818815
});
819816

820-
final Color color;
821817
final double fontSize;
822818
final double height;
823819
final int timestamp;
@@ -827,7 +823,7 @@ class DateText extends StatelessWidget {
827823
final zulipLocalizations = ZulipLocalizations.of(context);
828824
return Text(
829825
style: TextStyle(
830-
color: color,
826+
color: const HSLColor.fromAHSL(0.75, 0, 0, 0.15).toColor(),
831827
fontSize: fontSize,
832828
height: height,
833829
// This is equivalent to css `all-small-caps`, see:

0 commit comments

Comments
 (0)