This commit is contained in:
sion
2026-04-07 01:05:05 +08:00
parent edad10ff06
commit 5ca1274607
83 changed files with 1561 additions and 1241 deletions

View File

@@ -5,8 +5,8 @@ import '../../../../core/theme/app_spacing.dart';
import '../../../../data/models/account_models.dart';
import '../../../components/glass_panel.dart';
/// 持仓区
/// Header: "我的资产" + "查看全部 >"
/// 持倉區
/// Header: "我的資產" + "查看全部 >"
/// Holdings Card: cornerRadius lg, fill $surface-card, stroke $border-default 1px
class HoldingsSection extends StatelessWidget {
final List holdings;
@@ -19,14 +19,14 @@ class HoldingsSection extends StatelessWidget {
return Column(
children: [
// Header row: "我的资产" + "查看全部 >"
// Header row: "我的資產" + "查看全部 >"
Padding(
padding: const EdgeInsets.only(bottom: AppSpacing.sm),
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Text(
'我的资产',
'我的資產',
style: AppTextStyles.headlineLarge(context),
),
Text(
@@ -44,7 +44,7 @@ class HoldingsSection extends StatelessWidget {
Padding(
padding: const EdgeInsets.all(AppSpacing.xl),
child: Text(
'暂无持仓',
'暫無持倉',
style: AppTextStyles.bodyLarge(context).copyWith(
color: colorScheme.onSurfaceVariant,
),
@@ -78,7 +78,7 @@ class HoldingsSection extends StatelessWidget {
}
}
/// 持行分隔线 — .pen node BCCbR / yejhE
/// 持行分隔 — .pen node BCCbR / yejhE
/// fill: $border-default, height: 1, opacity: 0.5
class HoldingDivider extends StatelessWidget {
const HoldingDivider({super.key});
@@ -94,7 +94,7 @@ class HoldingDivider extends StatelessWidget {
}
}
/// 持行 — matching .pen nodes dAt4j / eK6vq / jiSUK
/// 持行 — matching .pen nodes dAt4j / eK6vq / jiSUK
/// padding [14, 16], space_between layout
/// Left: avatar circle (36x36, radius 18, fill $accent-light) + coin info (gap 2)
/// Right: value + pnl (gap 2, align end)