fix(mobile/share): fix referral code overflow, remove team stats & team reward section
- Fix RIGHT OVERFLOWED BY 17 PIXELS: use Flexible on code Text, reduce letterSpacing 4→2, reduce horizontal padding - Remove stats card (direct/team count) from page layout - Remove 团队层级收益 reward item from reward plan card Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
825e619224
commit
af7fdfd428
|
|
@ -233,8 +233,6 @@ class _SharePageState extends State<SharePage> {
|
||||||
children: [
|
children: [
|
||||||
_buildHeroCard(), // QR 码(APK 链接)+ 推荐码
|
_buildHeroCard(), // QR 码(APK 链接)+ 推荐码
|
||||||
const SizedBox(height: 16),
|
const SizedBox(height: 16),
|
||||||
_buildStatsCard(), // 邀请进度
|
|
||||||
const SizedBox(height: 16),
|
|
||||||
_buildRewardPlanCard(), // 推荐奖励计划(营销区块)
|
_buildRewardPlanCard(), // 推荐奖励计划(营销区块)
|
||||||
const SizedBox(height: 16),
|
const SizedBox(height: 16),
|
||||||
if (_info?.usedCode != null) ...[
|
if (_info?.usedCode != null) ...[
|
||||||
|
|
@ -364,7 +362,7 @@ class _SharePageState extends State<SharePage> {
|
||||||
GestureDetector(
|
GestureDetector(
|
||||||
onTap: _copyCode,
|
onTap: _copyCode,
|
||||||
child: Container(
|
child: Container(
|
||||||
padding: const EdgeInsets.symmetric(horizontal: 20, vertical: 10),
|
padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 10),
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: Colors.white.withOpacity(0.15),
|
color: Colors.white.withOpacity(0.15),
|
||||||
borderRadius: BorderRadius.circular(40),
|
borderRadius: BorderRadius.circular(40),
|
||||||
|
|
@ -373,18 +371,21 @@ class _SharePageState extends State<SharePage> {
|
||||||
child: Row(
|
child: Row(
|
||||||
mainAxisSize: MainAxisSize.min,
|
mainAxisSize: MainAxisSize.min,
|
||||||
children: [
|
children: [
|
||||||
Text(
|
Flexible(
|
||||||
_info?.referralCode ?? '------',
|
child: Text(
|
||||||
style: AppTypography.h2.copyWith(
|
_info?.referralCode ?? '------',
|
||||||
color: Colors.white,
|
style: AppTypography.h2.copyWith(
|
||||||
letterSpacing: 4,
|
color: Colors.white,
|
||||||
fontWeight: FontWeight.w700,
|
letterSpacing: 2,
|
||||||
fontFamily: 'monospace',
|
fontWeight: FontWeight.w700,
|
||||||
|
fontFamily: 'monospace',
|
||||||
|
),
|
||||||
|
overflow: TextOverflow.ellipsis,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
const SizedBox(width: 12),
|
const SizedBox(width: 10),
|
||||||
Container(
|
Container(
|
||||||
padding: const EdgeInsets.symmetric(horizontal: 10, vertical: 4),
|
padding: const EdgeInsets.symmetric(horizontal: 8, vertical: 4),
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: Colors.white.withOpacity(0.2),
|
color: Colors.white.withOpacity(0.2),
|
||||||
borderRadius: BorderRadius.circular(20),
|
borderRadius: BorderRadius.circular(20),
|
||||||
|
|
@ -512,14 +513,6 @@ class _SharePageState extends State<SharePage> {
|
||||||
desc: context.t('share.rewardDirectDesc'),
|
desc: context.t('share.rewardDirectDesc'),
|
||||||
),
|
),
|
||||||
const Divider(indent: 60, height: 1),
|
const Divider(indent: 60, height: 1),
|
||||||
_buildRewardItem(
|
|
||||||
icon: Icons.account_tree_rounded,
|
|
||||||
iconBg: AppColors.infoLight,
|
|
||||||
iconColor: AppColors.info,
|
|
||||||
title: context.t('share.rewardTeam'),
|
|
||||||
desc: context.t('share.rewardTeamDesc'),
|
|
||||||
),
|
|
||||||
const Divider(indent: 60, height: 1),
|
|
||||||
_buildRewardItem(
|
_buildRewardItem(
|
||||||
icon: Icons.card_giftcard_rounded,
|
icon: Icons.card_giftcard_rounded,
|
||||||
iconBg: AppColors.successLight,
|
iconBg: AppColors.successLight,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue