fix: 修复 BalanceCard 参数错误

- 移除 asset_page.dart 中 BalanceCard 的 provider 参数
- 与合并后的 BalanceCard 接口保持一致
This commit is contained in:
2026-04-06 11:25:46 +08:00
parent 93f8d70084
commit cbdf023c80

View File

@@ -88,7 +88,6 @@ class _AssetPageState extends State<AssetPage> with AutomaticKeepAliveClientMixi
children: [
Expanded(
child: BalanceCard(
provider: provider,
label: '资金账户',
balance: provider.fundAccount?.balance ?? provider.overview?.fundBalance ?? '0.00',
),
@@ -96,7 +95,6 @@ class _AssetPageState extends State<AssetPage> with AutomaticKeepAliveClientMixi
const SizedBox(width: AppSpacing.sm),
Expanded(
child: BalanceCard(
provider: provider,
label: '交易账户',
balance: _calculateTradeTotal(provider),
),