fix: 修复 wallet_coupons_page 缺少 CouponStatus 导入和错误引用

- 添加 coupon_card.dart 导入以获取 CouponStatus 枚举
- AppTypography.display → AppTypography.displayLarge
- AppColors.couponFood → AppColors.couponDining

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
hailin 2026-02-11 18:43:37 -08:00
parent b1a0f29f06
commit b9f36176ed
2 changed files with 5 additions and 4 deletions

View File

@ -258,7 +258,7 @@ class HomePage extends StatelessWidget {
('即将到期', Icons.timer_rounded, AppColors.warning),
('比价', Icons.compare_arrows_rounded, AppColors.couponShopping),
('转让市场', Icons.swap_horiz_rounded, AppColors.info),
('热门交易', Icons.local_fire_department_rounded, AppColors.couponFood),
('热门交易', Icons.local_fire_department_rounded, AppColors.couponDining),
('全部', Icons.grid_view_rounded, AppColors.textSecondary),
];

View File

@ -2,6 +2,7 @@ import 'package:flutter/material.dart';
import '../../../../app/theme/app_colors.dart';
import '../../../../app/theme/app_typography.dart';
import '../../../../app/theme/app_spacing.dart';
import '../../../../shared/widgets/coupon_card.dart';
import '../../../../shared/widgets/status_tag.dart';
import '../../../../shared/widgets/empty_state.dart';
import '../widgets/receive_coupon_sheet.dart';
@ -101,7 +102,7 @@ class _WalletCouponsPageState extends State<WalletCouponsPage>
child: Column(
children: [
Text('4',
style: AppTypography.display.copyWith(
style: AppTypography.displayLarge.copyWith(
color: Colors.white,
fontWeight: FontWeight.w700,
)),
@ -123,7 +124,7 @@ class _WalletCouponsPageState extends State<WalletCouponsPage>
child: Column(
children: [
Text('\$235',
style: AppTypography.display.copyWith(
style: AppTypography.displayLarge.copyWith(
color: Colors.white,
fontWeight: FontWeight.w700,
)),
@ -145,7 +146,7 @@ class _WalletCouponsPageState extends State<WalletCouponsPage>
child: Column(
children: [
Text('\$38',
style: AppTypography.display.copyWith(
style: AppTypography.displayLarge.copyWith(
color: Colors.white,
fontWeight: FontWeight.w700,
)),