refactor: 我的钱包 → 持仓,统一交易所语境

- 首页卡片: "我的钱包" → "持仓"
- 完整页面标题: "我的钱包" → "我的持仓"
- 图标: account_balance_wallet → inventory_2 (仓位/库存)
- 更新注释和 main.dart 描述

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
hailin 2026-02-11 18:58:47 -08:00
parent b9f36176ed
commit 8bbd56a86c
3 changed files with 9 additions and 9 deletions

View File

@ -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

View File

@ -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(

View File

@ -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});