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

This commit is contained in:
Zhou Weidong committed 2026-10-22 21:28:36 +08:00
1 parent b6e5f808d6
commit 95fb2ff882
2 files changed
+21 -10

No files matched your search

+16 -10
View File
@@ -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),