refactor: 我的钱包 → 持仓,统一交易所语境
- 首页卡片: "我的钱包" → "持仓" - 完整页面标题: "我的钱包" → "我的持仓" - 图标: account_balance_wallet → inventory_2 (仓位/库存) - 更新注释和 main.dart 描述 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
b9f36176ed
commit
8bbd56a86c
|
|
@ -6,7 +6,7 @@ import '../../../../shared/widgets/coupon_card.dart';
|
||||||
import '../../../ai_agent/presentation/widgets/ai_fab.dart';
|
import '../../../ai_agent/presentation/widgets/ai_fab.dart';
|
||||||
import '../widgets/receive_coupon_sheet.dart';
|
import '../widgets/receive_coupon_sheet.dart';
|
||||||
|
|
||||||
/// 首页 - 轻量钱包卡 + 分类网格 + AI推荐 + 精选券
|
/// 首页 - 轻量持仓卡 + 分类网格 + AI推荐 + 精选券
|
||||||
///
|
///
|
||||||
/// Tab导航:首页/交易/消息/我的
|
/// Tab导航:首页/交易/消息/我的
|
||||||
class HomePage extends StatelessWidget {
|
class HomePage extends StatelessWidget {
|
||||||
|
|
@ -36,7 +36,7 @@ class HomePage extends StatelessWidget {
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
|
||||||
// Lightweight Wallet Card (replaces heavy wallet)
|
// Lightweight Position Card (持仓)
|
||||||
SliverToBoxAdapter(child: _buildWalletCard(context)),
|
SliverToBoxAdapter(child: _buildWalletCard(context)),
|
||||||
|
|
||||||
// Category Grid (8 items, 4x2)
|
// Category Grid (8 items, 4x2)
|
||||||
|
|
@ -136,8 +136,8 @@ class HomePage extends StatelessWidget {
|
||||||
}
|
}
|
||||||
|
|
||||||
// ============================================================
|
// ============================================================
|
||||||
// Lightweight Wallet Card
|
// Lightweight Position Card (持仓卡片)
|
||||||
// 点击非快捷入口区域打开完整钱包页面
|
// 点击非快捷入口区域打开完整持仓页面
|
||||||
// ============================================================
|
// ============================================================
|
||||||
Widget _buildWalletCard(BuildContext context) {
|
Widget _buildWalletCard(BuildContext context) {
|
||||||
return GestureDetector(
|
return GestureDetector(
|
||||||
|
|
@ -155,10 +155,10 @@ class HomePage extends StatelessWidget {
|
||||||
// Top row: wallet info + receive button
|
// Top row: wallet info + receive button
|
||||||
Row(
|
Row(
|
||||||
children: [
|
children: [
|
||||||
const Icon(Icons.account_balance_wallet_rounded,
|
const Icon(Icons.inventory_2_rounded,
|
||||||
size: 20, color: Colors.white),
|
size: 20, color: Colors.white),
|
||||||
const SizedBox(width: 8),
|
const SizedBox(width: 8),
|
||||||
Text('我的钱包',
|
Text('持仓',
|
||||||
style: AppTypography.labelMedium.copyWith(color: Colors.white)),
|
style: AppTypography.labelMedium.copyWith(color: Colors.white)),
|
||||||
const Spacer(),
|
const Spacer(),
|
||||||
// Summary
|
// Summary
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ 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';
|
||||||
|
|
||||||
/// 完整钱包页面 - 融合"我的券"所有功能
|
/// 完整持仓页面 - 融合"我的券"所有功能
|
||||||
///
|
///
|
||||||
/// 顶部汇总卡片 + 4-Tab筛选(全部/可使用/待核销/已过期)
|
/// 顶部汇总卡片 + 4-Tab筛选(全部/可使用/待核销/已过期)
|
||||||
/// 券列表(品牌+面值+状态+到期+快捷操作)
|
/// 券列表(品牌+面值+状态+到期+快捷操作)
|
||||||
|
|
@ -39,7 +39,7 @@ class _WalletCouponsPageState extends State<WalletCouponsPage>
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
title: const Text('我的钱包'),
|
title: const Text('我的持仓'),
|
||||||
actions: [
|
actions: [
|
||||||
// 接收券
|
// 接收券
|
||||||
IconButton(
|
IconButton(
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,7 @@ void main() {
|
||||||
|
|
||||||
/// Genex Mobile - 券的生命周期管理平台
|
/// Genex Mobile - 券的生命周期管理平台
|
||||||
///
|
///
|
||||||
/// 券钱包/交易所/消息/个人中心
|
/// 持仓/交易所/消息/个人中心
|
||||||
/// 持有/接收/转赠/交易/核销数字券
|
/// 持有/接收/转赠/交易/核销数字券
|
||||||
class GenexConsumerApp extends StatelessWidget {
|
class GenexConsumerApp extends StatelessWidget {
|
||||||
const GenexConsumerApp({super.key});
|
const GenexConsumerApp({super.key});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue