minor fixes

This commit is contained in:
Serhii 2023-03-27 12:34:10 +03:00
parent 4915df9fb7
commit d230b6a07b

View file

@ -6,11 +6,15 @@ class MoneroBalance extends Balance {
: formattedFullBalance = moneroAmountToString(amount: fullBalance),
formattedUnlockedBalance =
moneroAmountToString(amount: unlockedBalance),
formattedFrozen = '',
formattedTotalAvailable = '',
super(unlockedBalance, fullBalance);
MoneroBalance.fromString(
{required this.formattedFullBalance,
required this.formattedUnlockedBalance})
required this.formattedUnlockedBalance,
required this.formattedFrozen,
required this.formattedTotalAvailable})
: fullBalance = moneroParseAmount(amount: formattedFullBalance),
unlockedBalance = moneroParseAmount(amount: formattedUnlockedBalance),
super(moneroParseAmount(amount: formattedUnlockedBalance),
@ -20,6 +24,8 @@ class MoneroBalance extends Balance {
final int unlockedBalance;
final String formattedFullBalance;
final String formattedUnlockedBalance;
final String formattedFrozen;
final String formattedTotalAvailable;
@override
String get formattedAvailableBalance => formattedUnlockedBalance;
@ -28,8 +34,8 @@ class MoneroBalance extends Balance {
String get formattedAdditionalBalance => formattedFullBalance;
@override
String get formattedFrozenBalance => '';
String get formattedFrozenBalance => formattedFrozen;
@override
String get formattedTotalAvailableBalance => '';
String get formattedTotalAvailableBalance => formattedTotalAvailable;
}