merge: 调整继续观看按钮样式

This commit is contained in:
Zhou Weidong committed 2026-10-22 21:28:41 +08:00
commit e70ca03c03
2 files changed
+20 -9

No files matched your search

+5
View File
@@ -1249,3 +1249,8 @@ $ flutter test
- 追剧与历史页增加 keep-alive,tab 与编辑态改用局部 ValueNotifier 更新,切换不再重建整个页面。 - 追剧与历史页增加 keep-alive,tab 与编辑态改用局部 ValueNotifier 更新,切换不再重建整个页面。
- 编辑图标调整为 20、`#B0B0B0`,热区 40×40,保持右侧 14 边距和垂直居中。 - 编辑图标调整为 20、`#B0B0B0`,热区 40×40,保持右侧 14 边距和垂直居中。
- 列表刷新期间保留已有数据与各页滚动位置;`flutter analyze`:No issues found。 - 列表刷新期间保留已有数据与各页滚动位置;`flutter analyze`:No issues found。
## 2026-10-22 播放历史继续观看按钮微调
- 继续观看改为无边框、无底色的纯文字按钮,默认 `#B0B0B0`、12/w500,按压态使用品牌色。
- 保持 28 高点击热区和右侧零间距;未执行测试或 analyze。
@@ -205,20 +205,26 @@ class FollowingHistoryCard extends StatelessWidget {
Widget _continueButton(AppLocalizations l10n) { Widget _continueButton(AppLocalizations l10n) {
return SizedBox( return SizedBox(
height: AppDimens.followingHistoryActionHeight, height: AppDimens.followingHistoryActionHeight,
child: OutlinedButton( child: TextButton(
key: Key('following-history-continue-$dramaId'), key: Key('following-history-continue-$dramaId'),
onPressed: onContinue, onPressed: onContinue,
style: OutlinedButton.styleFrom( style: ButtonStyle(
foregroundColor: AppColors.textPrimary, foregroundColor: WidgetStateProperty.resolveWith(
side: const BorderSide(color: AppColors.textPrimary), (states) => states.contains(WidgetState.pressed)
padding: const EdgeInsets.symmetric(horizontal: 10), ? AppColors.primary
minimumSize: Size.zero, : AppColors.textTabInactive,
),
backgroundColor: const WidgetStatePropertyAll(AppColors.transparent),
overlayColor: const WidgetStatePropertyAll(AppColors.transparent),
padding: const WidgetStatePropertyAll(EdgeInsets.zero),
minimumSize: const WidgetStatePropertyAll(Size.zero),
tapTargetSize: MaterialTapTargetSize.shrinkWrap, tapTargetSize: MaterialTapTargetSize.shrinkWrap,
visualDensity: VisualDensity.compact, visualDensity: VisualDensity.compact,
shape: const StadiumBorder(), textStyle: const WidgetStatePropertyAll(
textStyle: const TextStyle( TextStyle(
fontSize: AppDimens.followingSubtitleFont, fontSize: AppDimens.followingSubtitleFont,
fontWeight: FontWeight.w400, fontWeight: FontWeight.w500,
),
), ),
), ),
child: Text(l10n.continueWatching), child: Text(l10n.continueWatching),