Fix unconfirmed balance not refreshing in Send page

This commit is contained in:
Hanh 2021-09-28 20:08:43 +08:00
parent 53ce082642
commit 14e884c514
4 changed files with 3 additions and 237 deletions

View File

@ -1,234 +0,0 @@
// DO NOT EDIT. This is code generated via package:intl/generate_localized.dart
// This is a library that provides messages for a zh locale. All the
// messages from the main program should be duplicated here with the same
// function name.
// Ignore issues from commonly used lints in this file.
// ignore_for_file:unnecessary_brace_in_string_interps, unnecessary_new
// ignore_for_file:prefer_single_quotes,comment_references, directives_ordering
// ignore_for_file:annotate_overrides,prefer_generic_function_type_aliases
// ignore_for_file:unused_import, file_names, avoid_escaping_inner_quotes
import 'package:intl/intl.dart';
import 'package:intl/message_lookup_by_library.dart';
final messages = new MessageLookup();
typedef String MessageIfAbsent(String messageStr, List<dynamic> args);
class MessageLookup extends MessageLookupByLibrary {
String get localeName => 'zh';
static String m0(currency) => "${currency}的數量";
static String m1(ticker) =>
"Are you sure you want to save your contacts? It will cost 0.01 mZEC";
static String m2(ticker) => "你需要將你的公開結餘轉往屏蔽地址?";
static String m3(ticker) => "發送 ${ticker}";
static String m4(ticker) => "發送 ${ticker} 至...";
static String m5(amount, ticker, count) =>
"發送數目${amount} ${ticker}${count} 收款人";
static String m6(aZEC, ticker, address) =>
"傳送 ${aZEC} ${ticker}${address}";
static String m7(currency) => "使用 ${currency}";
final messages = _notInlinedMessages(_notInlinedMessages);
static Map<String, Function> _notInlinedMessages(_) => <String, Function>{
"about": MessageLookupByLibrary.simpleMessage("關於"),
"account": MessageLookupByLibrary.simpleMessage("帳戶"),
"accountBalanceHistory": MessageLookupByLibrary.simpleMessage("帳戶結餘記錄"),
"accountHasSomeBalanceAreYouSureYouWantTo":
MessageLookupByLibrary.simpleMessage(
"Account has some BALANCE. Are you sure you want to delete it?"),
"accountName": MessageLookupByLibrary.simpleMessage("帳戶名稱"),
"accountNameIsRequired":
MessageLookupByLibrary.simpleMessage("請輸入帳戶名稱"),
"accounts": MessageLookupByLibrary.simpleMessage("帳戶"),
"add": MessageLookupByLibrary.simpleMessage("增加"),
"addARecipientAndItWillShowHere": MessageLookupByLibrary.simpleMessage(
"Add a recipient and it will show here"),
"addContact": MessageLookupByLibrary.simpleMessage("Add Contact"),
"address": MessageLookupByLibrary.simpleMessage("地址"),
"addressCopiedToClipboard":
MessageLookupByLibrary.simpleMessage("複製地址到剪貼簿"),
"addressIsEmpty": MessageLookupByLibrary.simpleMessage("沒有地址"),
"advancedOptions": MessageLookupByLibrary.simpleMessage("進階選項"),
"amount": MessageLookupByLibrary.simpleMessage("數量"),
"amountInSettingscurrency": m0,
"amountMustBeANumber":
MessageLookupByLibrary.simpleMessage("請輸入數字(數量)"),
"amountMustBePositive": MessageLookupByLibrary.simpleMessage("數量必須為正數"),
"amountTooHigh":
MessageLookupByLibrary.simpleMessage("Amount too high"),
"approve": MessageLookupByLibrary.simpleMessage("同意"),
"areYouSureYouWantToDeleteThisContact":
MessageLookupByLibrary.simpleMessage(
"Are you sure you want to delete this contact?"),
"areYouSureYouWantToSaveYourContactsIt": m1,
"autoHideBalance":
MessageLookupByLibrary.simpleMessage("Auto Hide Balance"),
"backup": MessageLookupByLibrary.simpleMessage("備份"),
"backupDataRequiredForRestore":
MessageLookupByLibrary.simpleMessage("將資料備份 - 要求重置"),
"backupWarning": MessageLookupByLibrary.simpleMessage(
"No one can recover your secret keys. If you don\'t have a backup, you WILL LOSE YOUR MONEY if your phone breaks down. You can reach this page by the app menu then Backup"),
"balance": MessageLookupByLibrary.simpleMessage("粵語"),
"blue": MessageLookupByLibrary.simpleMessage("藍色"),
"broadcast": MessageLookupByLibrary.simpleMessage("廣播"),
"budget": MessageLookupByLibrary.simpleMessage("預算"),
"cancel": MessageLookupByLibrary.simpleMessage("取消"),
"changeAccountName": MessageLookupByLibrary.simpleMessage("更改帳戶名稱"),
"coffee": MessageLookupByLibrary.simpleMessage("咖啡色"),
"coldStorage": MessageLookupByLibrary.simpleMessage("冷藏庫"),
"confirmDeleteAccount": MessageLookupByLibrary.simpleMessage(
"你確定要將這帳戶刪除?這指令執行後,帳戶會被永久刪除,不能復原。"),
"confs": MessageLookupByLibrary.simpleMessage("確認"),
"contactName": MessageLookupByLibrary.simpleMessage("Contact Name"),
"contacts": MessageLookupByLibrary.simpleMessage("通訊錄"),
"createANewAccount": MessageLookupByLibrary.simpleMessage(
"Create a new account and it will show up here"),
"createANewContactAndItWillShowUpHere":
MessageLookupByLibrary.simpleMessage(
"Create a new contact and it will show up here"),
"currency": MessageLookupByLibrary.simpleMessage("貨幣"),
"custom": MessageLookupByLibrary.simpleMessage("自訂"),
"dark": MessageLookupByLibrary.simpleMessage("深色"),
"date": MessageLookupByLibrary.simpleMessage("Date"),
"datetime": MessageLookupByLibrary.simpleMessage("日期/時間"),
"delete": MessageLookupByLibrary.simpleMessage("刪除"),
"deleteAccount": MessageLookupByLibrary.simpleMessage("Delete Account"),
"deleteContact": MessageLookupByLibrary.simpleMessage("Delete contact"),
"doYouWantToDeleteTheSecretKeyAndConvert":
MessageLookupByLibrary.simpleMessage(
"你確定銷毀這秘密鎖匙?這指令執行後,該鎖匙會被永久刪除,不能復原。"),
"doYouWantToTransferYourEntireTransparentBalanceTo": m2,
"duplicateAccount":
MessageLookupByLibrary.simpleMessage("Duplicate Account"),
"enterSeed":
MessageLookupByLibrary.simpleMessage("輸入種子,秘密鎖匙或查看鎖匙\n留空預備新帳戶"),
"excludedNotes": MessageLookupByLibrary.simpleMessage("Excluded Notes"),
"gold": MessageLookupByLibrary.simpleMessage("Gold"),
"height": MessageLookupByLibrary.simpleMessage("高度"),
"history": MessageLookupByLibrary.simpleMessage("過去記錄"),
"includeFeeInAmount": MessageLookupByLibrary.simpleMessage("將費用加到總數"),
"invalidAddress": MessageLookupByLibrary.simpleMessage("地址不正確"),
"key": MessageLookupByLibrary.simpleMessage("鎖匙"),
"largestSpendingLastMonth":
MessageLookupByLibrary.simpleMessage("上月最高開支"),
"largestSpendingsByAddress":
MessageLookupByLibrary.simpleMessage("最大支出(用地址搜尋)"),
"light": MessageLookupByLibrary.simpleMessage("淺色"),
"max": MessageLookupByLibrary.simpleMessage("最大值"),
"maxAmountPerNote": MessageLookupByLibrary.simpleMessage("最大數量(每一紙幣)"),
"memo": MessageLookupByLibrary.simpleMessage("備忘"),
"mm": MessageLookupByLibrary.simpleMessage("按市值計"),
"multiPay": MessageLookupByLibrary.simpleMessage("廣泛支付"),
"multipay": MessageLookupByLibrary.simpleMessage("廣泛支付"),
"na": MessageLookupByLibrary.simpleMessage("不適用"),
"nameIsEmpty": MessageLookupByLibrary.simpleMessage("Name is empty"),
"newSnapAddress": MessageLookupByLibrary.simpleMessage("立即地址"),
"noAccount": MessageLookupByLibrary.simpleMessage("沒有帳戶"),
"noAuthenticationMethod": MessageLookupByLibrary.simpleMessage("不用驗證"),
"noContacts": MessageLookupByLibrary.simpleMessage("No Contacts"),
"noRecipient": MessageLookupByLibrary.simpleMessage("No Recipient"),
"noSpendingInTheLast30Days":
MessageLookupByLibrary.simpleMessage("過去三十天內沒有任何開支"),
"notEnoughBalance": MessageLookupByLibrary.simpleMessage("帳戶結餘不足"),
"notes": MessageLookupByLibrary.simpleMessage("紙幣"),
"numberOfConfirmationsNeededBeforeSpending":
MessageLookupByLibrary.simpleMessage("支付前需要確認之次數"),
"ok": MessageLookupByLibrary.simpleMessage("OK"),
"openInExplorer": MessageLookupByLibrary.simpleMessage("用瀏覽器開啟"),
"pink": MessageLookupByLibrary.simpleMessage("粉紅色"),
"pl": MessageLookupByLibrary.simpleMessage("獲利/虧損"),
"pleaseAuthenticateToSend":
MessageLookupByLibrary.simpleMessage("Please authenticate to Send"),
"pleaseAuthenticateToShowAccountSeed":
MessageLookupByLibrary.simpleMessage("如要顯示帳戶種子,請驗證"),
"pleaseConfirm": MessageLookupByLibrary.simpleMessage("請確認"),
"pnl": MessageLookupByLibrary.simpleMessage("獲利與虧損"),
"preparingTransaction": MessageLookupByLibrary.simpleMessage("準備交易⋯"),
"price": MessageLookupByLibrary.simpleMessage("價格"),
"protectSend": MessageLookupByLibrary.simpleMessage("Protect Send"),
"protectSendSettingChanged": MessageLookupByLibrary.simpleMessage(
"Protect Send setting changed"),
"purple": MessageLookupByLibrary.simpleMessage("Purple"),
"qty": MessageLookupByLibrary.simpleMessage("數量"),
"realized": MessageLookupByLibrary.simpleMessage("已獲利"),
"receivePayment":
MessageLookupByLibrary.simpleMessage("Receive a payment"),
"rescan": MessageLookupByLibrary.simpleMessage("重新掃描"),
"rescanNeeded": MessageLookupByLibrary.simpleMessage("Rescan Needed"),
"rescanRequested": MessageLookupByLibrary.simpleMessage("已經收到重新掃描要求"),
"rescanWalletFromTheFirstBlock":
MessageLookupByLibrary.simpleMessage("由第一組開始重新掃描銀包"),
"retrieveTransactionDetails":
MessageLookupByLibrary.simpleMessage("修復交易資料"),
"roundToMillis": MessageLookupByLibrary.simpleMessage("約數至千分之一"),
"saveToBlockchain":
MessageLookupByLibrary.simpleMessage("Save to Blockchain"),
"scanStartingMomentarily":
MessageLookupByLibrary.simpleMessage("掃描即將開始"),
"secretKey": MessageLookupByLibrary.simpleMessage("秘密鎖匙"),
"seed": MessageLookupByLibrary.simpleMessage("種子"),
"selectAccount": MessageLookupByLibrary.simpleMessage("Select Account"),
"selectNotesToExcludeFromPayments":
MessageLookupByLibrary.simpleMessage("選取不需要的貨幣"),
"send": MessageLookupByLibrary.simpleMessage("發送"),
"sendCointicker": m3,
"sendCointickerTo": m4,
"sendingATotalOfAmountCointickerToCountRecipients": m5,
"sendingAzecCointickerToAddress": m6,
"server": MessageLookupByLibrary.simpleMessage("伺服器"),
"settings": MessageLookupByLibrary.simpleMessage("設定"),
"shieldTranspBalance": MessageLookupByLibrary.simpleMessage("屏蔽公開餘額"),
"shieldTransparentBalance":
MessageLookupByLibrary.simpleMessage("屏蔽你的公開結餘"),
"shieldingInProgress": MessageLookupByLibrary.simpleMessage("屏蔽進行中"),
"spendable": MessageLookupByLibrary.simpleMessage("可使用的"),
"spendableBalance":
MessageLookupByLibrary.simpleMessage("Spendable Balance"),
"synching": MessageLookupByLibrary.simpleMessage("同步"),
"table": MessageLookupByLibrary.simpleMessage("表列"),
"tapAnIconToShowTheQrCode":
MessageLookupByLibrary.simpleMessage("請點擊並顯示二維碼"),
"tapChartToToggleBetweenAddressAndAmount":
MessageLookupByLibrary.simpleMessage("點擊表列以切換地址及總數"),
"tapQrCodeForShieldedAddress":
MessageLookupByLibrary.simpleMessage("屏蔽地址請點擊二維碼"),
"tapQrCodeForTransparentAddress":
MessageLookupByLibrary.simpleMessage("公開地址請點擊二維碼"),
"theme": MessageLookupByLibrary.simpleMessage("佈置主題"),
"thisAccountAlreadyExists": MessageLookupByLibrary.simpleMessage(
"This account already exists."),
"tiltYourDeviceUpToRevealYourBalance":
MessageLookupByLibrary.simpleMessage(
"Tilt your device up to reveal your balance"),
"timestamp": MessageLookupByLibrary.simpleMessage("時間蓋章"),
"toMakeAContactSendThemAMemoWithContact":
MessageLookupByLibrary.simpleMessage("發送備忘到 Contact:"),
"total": MessageLookupByLibrary.simpleMessage("總數"),
"totalBalance": MessageLookupByLibrary.simpleMessage("Total Balance"),
"tradingChartRange": MessageLookupByLibrary.simpleMessage("交易範圍"),
"tradingPl": MessageLookupByLibrary.simpleMessage("交易"),
"transactionDetails": MessageLookupByLibrary.simpleMessage("交易資料"),
"txId": MessageLookupByLibrary.simpleMessage("TX ID:"),
"underConfirmed":
MessageLookupByLibrary.simpleMessage("Under Confirmed"),
"unshielded": MessageLookupByLibrary.simpleMessage("Unshielded"),
"unshieldedBalance":
MessageLookupByLibrary.simpleMessage("Unshielded Balance"),
"unsignedTransactionFile":
MessageLookupByLibrary.simpleMessage("未簽署交易文件"),
"useSettingscurrency": m7,
"useUa": MessageLookupByLibrary.simpleMessage("Use UA"),
"version": MessageLookupByLibrary.simpleMessage("版本"),
"viewingKey": MessageLookupByLibrary.simpleMessage("查看鎖匙")
};
}

View File

@ -61,7 +61,7 @@ class SendState extends State<SendPage> {
});
_newBlockAutorunDispose = autorun((_) async {
final _ = accountManager.dataEpoch;
final _ = syncStatus.latestHeight;
final sBalance = await accountManager.getShieldedBalance();
final tBalance = accountManager.tbalance;
final excludedBalance = await accountManager.getExcludedBalance();

View File

@ -15,7 +15,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 1.0.10+159
version: 1.0.10+161
environment:
sdk: ">=2.12.0 <3.0.0"

View File

@ -15,7 +15,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 1.0.10+159
version: 1.0.10+161
environment:
sdk: ">=2.12.0 <3.0.0"