Revert "feat(mobile-app): 用户资料页添加"同伴认种"标题和快捷标签"
This reverts commit d274444ca9.
This commit is contained in:
parent
d274444ca9
commit
2a31e1ba6d
|
|
@ -375,82 +375,45 @@ class _UserProfilePageState extends ConsumerState<UserProfilePage> {
|
||||||
}
|
}
|
||||||
|
|
||||||
Widget _buildStatsCard(UserProfileResponse profile) {
|
Widget _buildStatsCard(UserProfileResponse profile) {
|
||||||
return Column(
|
return Container(
|
||||||
crossAxisAlignment: CrossAxisAlignment.end,
|
padding: const EdgeInsets.symmetric(vertical: 16, horizontal: 12),
|
||||||
children: [
|
decoration: BoxDecoration(
|
||||||
// 右上角标题"同伴认种"
|
color: Colors.white.withValues(alpha: 0.9),
|
||||||
Text(
|
borderRadius: BorderRadius.circular(16),
|
||||||
'同伴认种',
|
boxShadow: [
|
||||||
style: TextStyle(
|
BoxShadow(
|
||||||
fontSize: 18,
|
color: const Color(0xFFD4AF37).withValues(alpha: 0.1),
|
||||||
fontWeight: FontWeight.w600,
|
blurRadius: 10,
|
||||||
color: const Color(0xFF9C27B0).withValues(alpha: 0.8),
|
offset: const Offset(0, 2),
|
||||||
),
|
),
|
||||||
),
|
],
|
||||||
const SizedBox(height: 8),
|
),
|
||||||
// 统计卡片
|
child: Row(
|
||||||
Container(
|
children: [
|
||||||
padding: const EdgeInsets.symmetric(vertical: 16, horizontal: 12),
|
_buildStatItem(
|
||||||
decoration: BoxDecoration(
|
label: '直推',
|
||||||
color: Colors.white.withValues(alpha: 0.9),
|
value: '${profile.directReferralCount}',
|
||||||
borderRadius: BorderRadius.circular(16),
|
color: const Color(0xFF4CAF50),
|
||||||
boxShadow: [
|
|
||||||
BoxShadow(
|
|
||||||
color: const Color(0xFFD4AF37).withValues(alpha: 0.1),
|
|
||||||
blurRadius: 10,
|
|
||||||
offset: const Offset(0, 2),
|
|
||||||
),
|
|
||||||
],
|
|
||||||
),
|
),
|
||||||
child: Row(
|
_buildStatDivider(),
|
||||||
children: [
|
_buildStatItem(
|
||||||
_buildStatItem(
|
label: '伞下',
|
||||||
label: '直推',
|
value: '${profile.umbrellaUserCount}',
|
||||||
value: '${profile.directReferralCount}',
|
color: const Color(0xFF2196F3),
|
||||||
color: const Color(0xFF4CAF50),
|
|
||||||
),
|
|
||||||
_buildStatDivider(),
|
|
||||||
_buildStatItem(
|
|
||||||
label: '伞下',
|
|
||||||
value: '${profile.umbrellaUserCount}',
|
|
||||||
color: const Color(0xFF2196F3),
|
|
||||||
),
|
|
||||||
_buildStatDivider(),
|
|
||||||
_buildStatItem(
|
|
||||||
label: '个人认种',
|
|
||||||
value: '${profile.personalPlantingCount}',
|
|
||||||
color: const Color(0xFF8BC34A),
|
|
||||||
),
|
|
||||||
_buildStatDivider(),
|
|
||||||
_buildStatItem(
|
|
||||||
label: '团队认种',
|
|
||||||
value: '${profile.teamPlantingCount}',
|
|
||||||
color: const Color(0xFFD4AF37),
|
|
||||||
),
|
|
||||||
],
|
|
||||||
),
|
),
|
||||||
),
|
_buildStatDivider(),
|
||||||
const SizedBox(height: 12),
|
_buildStatItem(
|
||||||
// 快捷标签行
|
label: '个人认种',
|
||||||
Row(
|
value: '${profile.personalPlantingCount}',
|
||||||
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
color: const Color(0xFF8BC34A),
|
||||||
children: [
|
),
|
||||||
_buildQuickLabel('引荐', const Color(0xFF4CAF50)),
|
_buildStatDivider(),
|
||||||
_buildQuickLabel('同伴', const Color(0xFF9C27B0)),
|
_buildStatItem(
|
||||||
_buildQuickLabel('本人', const Color(0xFFD4AF37)),
|
label: '团队认种',
|
||||||
],
|
value: '${profile.teamPlantingCount}',
|
||||||
),
|
color: const Color(0xFFD4AF37),
|
||||||
],
|
),
|
||||||
);
|
],
|
||||||
}
|
|
||||||
|
|
||||||
Widget _buildQuickLabel(String text, Color color) {
|
|
||||||
return Text(
|
|
||||||
text,
|
|
||||||
style: TextStyle(
|
|
||||||
fontSize: 20,
|
|
||||||
fontWeight: FontWeight.w600,
|
|
||||||
color: color,
|
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue