mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-25 12:06:05 +00:00
Merge branch 'main' of https://github.com/cake-tech/cake_wallet into CW-225-pin-timeout
This commit is contained in:
commit
b486edb803
6 changed files with 13 additions and 18 deletions
BIN
assets/images/2.0x/privacy_menu.png
Normal file
BIN
assets/images/2.0x/privacy_menu.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.3 KiB |
BIN
assets/images/3.0x/privacy_menu.png
Normal file
BIN
assets/images/3.0x/privacy_menu.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.9 KiB |
BIN
assets/images/privacy_menu.png
Normal file
BIN
assets/images/privacy_menu.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 548 B |
|
@ -53,7 +53,7 @@ class Node extends HiveObject with Keyable {
|
||||||
@HiveField(4)
|
@HiveField(4)
|
||||||
bool? useSSL;
|
bool? useSSL;
|
||||||
|
|
||||||
@HiveField(5)
|
@HiveField(5, defaultValue: false)
|
||||||
bool trusted;
|
bool trusted;
|
||||||
|
|
||||||
bool get isSSL => useSSL ?? false;
|
bool get isSSL => useSSL ?? false;
|
||||||
|
|
|
@ -21,6 +21,12 @@ class WalletMenu {
|
||||||
height: 16, width: 16),
|
height: 16, width: 16),
|
||||||
handler: () => Navigator.of(context).pushNamed(Routes.walletList),
|
handler: () => Navigator.of(context).pushNamed(Routes.walletList),
|
||||||
),
|
),
|
||||||
|
WalletMenuItem(
|
||||||
|
title: S.current.address_book_menu,
|
||||||
|
image: Image.asset('assets/images/open_book_menu.png',
|
||||||
|
height: 16, width: 16),
|
||||||
|
handler: () => Navigator.of(context).pushNamed(Routes.addressBook),
|
||||||
|
),
|
||||||
WalletMenuItem(
|
WalletMenuItem(
|
||||||
title: S.current.security_and_backup,
|
title: S.current.security_and_backup,
|
||||||
image:
|
image:
|
||||||
|
@ -29,18 +35,12 @@ class WalletMenu {
|
||||||
Navigator.of(context).pushNamed(Routes.securityBackupPage);
|
Navigator.of(context).pushNamed(Routes.securityBackupPage);
|
||||||
}),
|
}),
|
||||||
WalletMenuItem(
|
WalletMenuItem(
|
||||||
title: S.current.privacy,
|
title: S.current.privacy_settings,
|
||||||
image:
|
image:
|
||||||
Image.asset('assets/images/eye_menu.png', height: 16, width: 16),
|
Image.asset('assets/images/privacy_menu.png', height: 16, width: 16),
|
||||||
handler: () {
|
handler: () {
|
||||||
Navigator.of(context).pushNamed(Routes.privacyPage);
|
Navigator.of(context).pushNamed(Routes.privacyPage);
|
||||||
}),
|
}),
|
||||||
WalletMenuItem(
|
|
||||||
title: S.current.address_book_menu,
|
|
||||||
image: Image.asset('assets/images/open_book_menu.png',
|
|
||||||
height: 16, width: 16),
|
|
||||||
handler: () => Navigator.of(context).pushNamed(Routes.addressBook),
|
|
||||||
),
|
|
||||||
WalletMenuItem(
|
WalletMenuItem(
|
||||||
title: S.current.display_settings,
|
title: S.current.display_settings,
|
||||||
image: Image.asset('assets/images/eye_menu.png',
|
image: Image.asset('assets/images/eye_menu.png',
|
||||||
|
|
|
@ -31,13 +31,8 @@ abstract class TradesStoreBase with Store {
|
||||||
void setTrade(Trade trade) => this.trade = trade;
|
void setTrade(Trade trade) => this.trade = trade;
|
||||||
|
|
||||||
@action
|
@action
|
||||||
Future<void> updateTradeList() async {
|
Future<void> updateTradeList() async => trades =
|
||||||
if (trade == null) {
|
tradesSource.values.map((trade) => TradeListItem(
|
||||||
return;
|
trade: trade,
|
||||||
}
|
|
||||||
|
|
||||||
trades = tradesSource.values.map((trade) => TradeListItem(
|
|
||||||
trade: trade!,
|
|
||||||
settingsStore: settingsStore)).toList();
|
settingsStore: settingsStore)).toList();
|
||||||
}
|
}
|
||||||
}
|
|
Loading…
Reference in a new issue