style: 调整继续观看按钮样式
This commit is contained in:
1 parent
b6e5f808d6
commit
95fb2ff882
2 files changed
+21
-10
No files matched your search
@@ -1249,3 +1249,8 @@ $ flutter test
|
||||
- 追剧与历史页增加 keep-alive,tab 与编辑态改用局部 ValueNotifier 更新,切换不再重建整个页面。
|
||||
- 编辑图标调整为 20、`#B0B0B0`,热区 40×40,保持右侧 14 边距和垂直居中。
|
||||
- 列表刷新期间保留已有数据与各页滚动位置;`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) {
|
||||
return SizedBox(
|
||||
height: AppDimens.followingHistoryActionHeight,
|
||||
child: OutlinedButton(
|
||||
child: TextButton(
|
||||
key: Key('following-history-continue-$dramaId'),
|
||||
onPressed: onContinue,
|
||||
style: OutlinedButton.styleFrom(
|
||||
foregroundColor: AppColors.textPrimary,
|
||||
side: const BorderSide(color: AppColors.textPrimary),
|
||||
padding: const EdgeInsets.symmetric(horizontal: 10),
|
||||
minimumSize: Size.zero,
|
||||
style: ButtonStyle(
|
||||
foregroundColor: WidgetStateProperty.resolveWith(
|
||||
(states) => states.contains(WidgetState.pressed)
|
||||
? AppColors.primary
|
||||
: 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,
|
||||
visualDensity: VisualDensity.compact,
|
||||
shape: const StadiumBorder(),
|
||||
textStyle: const TextStyle(
|
||||
fontSize: AppDimens.followingSubtitleFont,
|
||||
fontWeight: FontWeight.w400,
|
||||
textStyle: const WidgetStatePropertyAll(
|
||||
TextStyle(
|
||||
fontSize: AppDimens.followingSubtitleFont,
|
||||
fontWeight: FontWeight.w500,
|
||||
),
|
||||
),
|
||||
),
|
||||
child: Text(l10n.continueWatching),
|
||||
|
||||
Reference in new issue
Block a user