fix: Cleanup balance page and balance page view_model

This commit is contained in:
Blazebrain 2024-07-25 11:20:04 +01:00
parent 5c250a4322
commit 24cea6b217
2 changed files with 3 additions and 15 deletions

View file

@ -237,10 +237,6 @@ class CryptoBalanceWidget extends StatelessWidget {
additionalFiatBalance: balance.fiatAdditionalBalance, additionalFiatBalance: balance.fiatAdditionalBalance,
hasAdditionalBalance: hasAdditionalBalance:
dashboardViewModel.balanceViewModel.hasAdditionalBalance, dashboardViewModel.balanceViewModel.hasAdditionalBalance,
// hasFullBalance: dashboardViewModel.balanceViewModel.hasFullBalance,
// fullBalanceLabel: '${dashboardViewModel.balanceViewModel.fullBalanceLabel}',
// fullBalance: balance.fullBalance,
// fullFiatBalance: balance.fiatFullBalance,
frozenBalance: balance.frozenBalance, frozenBalance: balance.frozenBalance,
frozenFiatBalance: balance.fiatFrozenBalance, frozenFiatBalance: balance.fiatFrozenBalance,
currency: balance.asset, currency: balance.asset,
@ -372,10 +368,6 @@ class BalanceRowWidget extends StatelessWidget {
required this.additionalFiatBalance, required this.additionalFiatBalance,
required this.frozenBalance, required this.frozenBalance,
required this.frozenFiatBalance, required this.frozenFiatBalance,
// required this.fullBalanceLabel,
// required this.fullBalance,
// required this.fullFiatBalance,
// required this.hasFullBalance,
required this.currency, required this.currency,
required this.hasAdditionalBalance, required this.hasAdditionalBalance,
required this.isTestnet, required this.isTestnet,
@ -390,10 +382,6 @@ class BalanceRowWidget extends StatelessWidget {
final String additionalFiatBalance; final String additionalFiatBalance;
final String frozenBalance; final String frozenBalance;
final String frozenFiatBalance; final String frozenFiatBalance;
// final String fullBalanceLabel;
// final String fullBalance;
// final String fullFiatBalance;
// final bool hasFullBalance;
final CryptoCurrency currency; final CryptoCurrency currency;
final bool hasAdditionalBalance; final bool hasAdditionalBalance;
final bool isTestnet; final bool isTestnet;

View file

@ -66,7 +66,7 @@ abstract class BalanceViewModelBase with Store {
WalletBase<Balance, TransactionHistoryBase<TransactionInfo>, TransactionInfo> wallet; WalletBase<Balance, TransactionHistoryBase<TransactionInfo>, TransactionInfo> wallet;
@computed @computed
bool get hasSilentPayments => wallet.type == WalletType.bitcoin; bool get hasSilentPayments => wallet.type == WalletType.bitcoin && !wallet.isHardwareWallet;
@computed @computed
double get price { double get price {
@ -93,7 +93,7 @@ abstract class BalanceViewModelBase with Store {
wallet.type == WalletType.tron; wallet.type == WalletType.tron;
@computed @computed
bool get hasAccounts => wallet.type == WalletType.monero; bool get hasAccounts => wallet.type == WalletType.monero || wallet.type == WalletType.wownero;
@computed @computed
SortBalanceBy get sortBalanceBy => settingsStore.sortBalanceBy; SortBalanceBy get sortBalanceBy => settingsStore.sortBalanceBy;