fix: 修复 BalanceCard 参数错误
- 移除 asset_page.dart 中 BalanceCard 的 provider 参数 - 与合并后的 BalanceCard 接口保持一致
This commit is contained in:
@@ -88,7 +88,6 @@ class _AssetPageState extends State<AssetPage> with AutomaticKeepAliveClientMixi
|
|||||||
children: [
|
children: [
|
||||||
Expanded(
|
Expanded(
|
||||||
child: BalanceCard(
|
child: BalanceCard(
|
||||||
provider: provider,
|
|
||||||
label: '资金账户',
|
label: '资金账户',
|
||||||
balance: provider.fundAccount?.balance ?? provider.overview?.fundBalance ?? '0.00',
|
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),
|
const SizedBox(width: AppSpacing.sm),
|
||||||
Expanded(
|
Expanded(
|
||||||
child: BalanceCard(
|
child: BalanceCard(
|
||||||
provider: provider,
|
|
||||||
label: '交易账户',
|
label: '交易账户',
|
||||||
balance: _calculateTradeTotal(provider),
|
balance: _calculateTradeTotal(provider),
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user