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:
parent
b1a0f29f06
commit
b9f36176ed
|
|
@ -258,7 +258,7 @@ class HomePage extends StatelessWidget {
|
||||||
('即将到期', Icons.timer_rounded, AppColors.warning),
|
('即将到期', Icons.timer_rounded, AppColors.warning),
|
||||||
('比价', Icons.compare_arrows_rounded, AppColors.couponShopping),
|
('比价', Icons.compare_arrows_rounded, AppColors.couponShopping),
|
||||||
('转让市场', Icons.swap_horiz_rounded, AppColors.info),
|
('转让市场', 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),
|
('全部', Icons.grid_view_rounded, AppColors.textSecondary),
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,7 @@ import 'package:flutter/material.dart';
|
||||||
import '../../../../app/theme/app_colors.dart';
|
import '../../../../app/theme/app_colors.dart';
|
||||||
import '../../../../app/theme/app_typography.dart';
|
import '../../../../app/theme/app_typography.dart';
|
||||||
import '../../../../app/theme/app_spacing.dart';
|
import '../../../../app/theme/app_spacing.dart';
|
||||||
|
import '../../../../shared/widgets/coupon_card.dart';
|
||||||
import '../../../../shared/widgets/status_tag.dart';
|
import '../../../../shared/widgets/status_tag.dart';
|
||||||
import '../../../../shared/widgets/empty_state.dart';
|
import '../../../../shared/widgets/empty_state.dart';
|
||||||
import '../widgets/receive_coupon_sheet.dart';
|
import '../widgets/receive_coupon_sheet.dart';
|
||||||
|
|
@ -101,7 +102,7 @@ class _WalletCouponsPageState extends State<WalletCouponsPage>
|
||||||
child: Column(
|
child: Column(
|
||||||
children: [
|
children: [
|
||||||
Text('4',
|
Text('4',
|
||||||
style: AppTypography.display.copyWith(
|
style: AppTypography.displayLarge.copyWith(
|
||||||
color: Colors.white,
|
color: Colors.white,
|
||||||
fontWeight: FontWeight.w700,
|
fontWeight: FontWeight.w700,
|
||||||
)),
|
)),
|
||||||
|
|
@ -123,7 +124,7 @@ class _WalletCouponsPageState extends State<WalletCouponsPage>
|
||||||
child: Column(
|
child: Column(
|
||||||
children: [
|
children: [
|
||||||
Text('\$235',
|
Text('\$235',
|
||||||
style: AppTypography.display.copyWith(
|
style: AppTypography.displayLarge.copyWith(
|
||||||
color: Colors.white,
|
color: Colors.white,
|
||||||
fontWeight: FontWeight.w700,
|
fontWeight: FontWeight.w700,
|
||||||
)),
|
)),
|
||||||
|
|
@ -145,7 +146,7 @@ class _WalletCouponsPageState extends State<WalletCouponsPage>
|
||||||
child: Column(
|
child: Column(
|
||||||
children: [
|
children: [
|
||||||
Text('\$38',
|
Text('\$38',
|
||||||
style: AppTypography.display.copyWith(
|
style: AppTypography.displayLarge.copyWith(
|
||||||
color: Colors.white,
|
color: Colors.white,
|
||||||
fontWeight: FontWeight.w700,
|
fontWeight: FontWeight.w700,
|
||||||
)),
|
)),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue