From 8b7157fca849c0caca3b03a9e52a4d430c397129 Mon Sep 17 00:00:00 2001 From: realth000 Date: Sat, 7 Sep 2024 05:15:50 +0800 Subject: [PATCH] reveret(card): Remove text and icon color in forum card --- lib/widgets/card/forum_card.dart | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/lib/widgets/card/forum_card.dart b/lib/widgets/card/forum_card.dart index fa26f4c1..6a1d37bb 100644 --- a/lib/widgets/card/forum_card.dart +++ b/lib/widgets/card/forum_card.dart @@ -153,19 +153,17 @@ final class _ForumCardState extends State with LoggerMixin { ), ]; - final fixedColor = Theme.of(context).colorScheme.secondaryFixed; final forumInfoWidgets = forumInfoList .map( (e) => Expanded( child: Row( children: [ - Icon(e.$1, size: smallIconSize, color: fixedColor), + Icon(e.$1, size: smallIconSize), sizedBoxW4H4, Flexible( child: Text( '${e.$2}', - style: - TextStyle(fontSize: smallTextSize, color: fixedColor), + style: const TextStyle(fontSize: smallTextSize), maxLines: 1, overflow: TextOverflow.clip, ), @@ -201,9 +199,7 @@ final class _ForumCardState extends State with LoggerMixin { ), title: Text( widget.forum.name, - style: Theme.of(context).textTheme.titleMedium?.copyWith( - color: Theme.of(context).colorScheme.primary, - ), + style: Theme.of(context).textTheme.titleMedium, maxLines: 2, ), subtitle: widget.forum.latestThreadTime != null