From 1b2211d64115d31a6dd92a9cb0734e6f64e8faa5 Mon Sep 17 00:00:00 2001 From: hailin Date: Wed, 10 Dec 2025 09:13:20 -0800 Subject: [PATCH] feat(mobile): add personal planting count to profile page MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Added "个人种植数" stat between direct referral count and team planting count in the profile page team stats section. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- .../presentation/pages/profile_page.dart | 63 +++++++++++++++---- 1 file changed, 52 insertions(+), 11 deletions(-) diff --git a/frontend/mobile-app/lib/features/profile/presentation/pages/profile_page.dart b/frontend/mobile-app/lib/features/profile/presentation/pages/profile_page.dart index e008a22a..9ef43669 100644 --- a/frontend/mobile-app/lib/features/profile/presentation/pages/profile_page.dart +++ b/frontend/mobile-app/lib/features/profile/presentation/pages/profile_page.dart @@ -1440,7 +1440,7 @@ class _ProfilePageState extends ConsumerState { children: [ Expanded( child: Container( - padding: const EdgeInsets.all(16), + padding: const EdgeInsets.all(12), decoration: BoxDecoration( color: const Color(0xFFFFF5E6), borderRadius: BorderRadius.circular(8), @@ -1454,7 +1454,7 @@ class _ProfilePageState extends ConsumerState { const Text( '直推人数', style: TextStyle( - fontSize: 14, + fontSize: 12, fontFamily: 'Inter', fontWeight: FontWeight.w500, height: 1.5, @@ -1462,11 +1462,11 @@ class _ProfilePageState extends ConsumerState { ), textAlign: TextAlign.center, ), - const SizedBox(height: 8), + const SizedBox(height: 6), Text( _formatInt(_directReferralCount), style: const TextStyle( - fontSize: 24, + fontSize: 20, fontFamily: 'Inter', fontWeight: FontWeight.w700, height: 1.25, @@ -1478,10 +1478,10 @@ class _ProfilePageState extends ConsumerState { ), ), ), - const SizedBox(width: 16), + const SizedBox(width: 8), Expanded( child: Container( - padding: const EdgeInsets.all(16), + padding: const EdgeInsets.all(12), decoration: BoxDecoration( color: const Color(0xFFFFF5E6), borderRadius: BorderRadius.circular(8), @@ -1493,9 +1493,9 @@ class _ProfilePageState extends ConsumerState { child: Column( children: [ const Text( - '团队种植数量', + '个人种植数', style: TextStyle( - fontSize: 14, + fontSize: 12, fontFamily: 'Inter', fontWeight: FontWeight.w500, height: 1.5, @@ -1503,11 +1503,52 @@ class _ProfilePageState extends ConsumerState { ), textAlign: TextAlign.center, ), - const SizedBox(height: 8), + const SizedBox(height: 6), Text( - _formatInt(_totalTeamCount), + _formatInt(_personalPlantingCount), style: const TextStyle( - fontSize: 24, + fontSize: 20, + fontFamily: 'Inter', + fontWeight: FontWeight.w700, + height: 1.25, + color: Color(0xFF5D4037), + ), + textAlign: TextAlign.center, + ), + ], + ), + ), + ), + const SizedBox(width: 8), + Expanded( + child: Container( + padding: const EdgeInsets.all(12), + decoration: BoxDecoration( + color: const Color(0xFFFFF5E6), + borderRadius: BorderRadius.circular(8), + border: Border.all( + color: const Color(0x33D4AF37), + width: 1, + ), + ), + child: Column( + children: [ + const Text( + '团队种植数', + style: TextStyle( + fontSize: 12, + fontFamily: 'Inter', + fontWeight: FontWeight.w500, + height: 1.5, + color: Color(0xCC5D4037), + ), + textAlign: TextAlign.center, + ), + const SizedBox(height: 6), + Text( + _formatInt(_teamPlantingCount), + style: const TextStyle( + fontSize: 20, fontFamily: 'Inter', fontWeight: FontWeight.w700, height: 1.25,