fix: 修正双击点赞与心形联动
This commit is contained in:
1 parent
78d0166eb7
commit
68ccfa21c0
8 files changed
+200
-64
No files matched your search
@@ -371,6 +371,9 @@ class HomeFeedActionRail extends StatelessWidget {
|
||||
icon: liked
|
||||
? Icons.favorite_rounded
|
||||
: Icons.favorite_border_rounded,
|
||||
iconColor: liked
|
||||
? AppColors.doubleTapHeartRed
|
||||
: AppColors.textPrimary,
|
||||
label: likeCount == null
|
||||
? l10n.like
|
||||
: formatInteractionCount(likeCount!),
|
||||
@@ -397,6 +400,7 @@ class HomeFeedActionRail extends StatelessWidget {
|
||||
required String label,
|
||||
required Key labelKey,
|
||||
required VoidCallback onTap,
|
||||
Color iconColor = AppColors.textPrimary,
|
||||
double labelFontSize = 12,
|
||||
}) {
|
||||
return GestureDetector(
|
||||
@@ -409,7 +413,7 @@ class HomeFeedActionRail extends StatelessWidget {
|
||||
Icon(
|
||||
icon,
|
||||
size: _actionIcon,
|
||||
color: AppColors.textPrimary,
|
||||
color: iconColor,
|
||||
shadows: const [
|
||||
Shadow(
|
||||
color: AppColors.shadowSoft,
|
||||
|
||||
Reference in new issue
Block a user