mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-02-02 11:16:26 +00:00
CAKE-341 | fixed scrollbar for currency_picker.dart; applied receive currency list to exchange_template_page.dart
This commit is contained in:
parent
72a39fd43b
commit
8e62f2f811
3 changed files with 6 additions and 4 deletions
|
@ -176,7 +176,7 @@ class ExchangeTemplatePage extends BasePage {
|
|||
initialIsAddressEditable:
|
||||
exchangeViewModel.isReceiveAddressEnabled,
|
||||
isAmountEstimated: true,
|
||||
currencies: CryptoCurrency.all,
|
||||
currencies: exchangeViewModel.receiveCurrencies,
|
||||
onCurrencySelected: (currency) =>
|
||||
exchangeViewModel.changeReceiveCurrency(
|
||||
currency: currency),
|
||||
|
|
|
@ -45,6 +45,7 @@ class CurrencyPickerState extends State<CurrencyPicker> {
|
|||
color: Palette.darkBlueCraiola,
|
||||
);
|
||||
final int crossAxisCount = 3;
|
||||
final int maxNumberItemsInAlert = 12;
|
||||
final int itemsCount;
|
||||
final double backgroundHeight = 280;
|
||||
final double thumbHeight = 72;
|
||||
|
@ -148,6 +149,7 @@ class CurrencyPickerState extends State<CurrencyPicker> {
|
|||
);
|
||||
})
|
||||
),
|
||||
if (itemsCount > maxNumberItemsInAlert)
|
||||
CakeScrollbar(
|
||||
backgroundHeight: backgroundHeight,
|
||||
thumbHeight: thumbHeight,
|
||||
|
|
|
@ -70,7 +70,7 @@ packages:
|
|||
path: "."
|
||||
ref: cake
|
||||
resolved-ref: "02fef082f20af13de00b4e64efb93a2c1e5e1cf2"
|
||||
url: "git@github.com:cake-tech/bech32.git"
|
||||
url: "https://github.com/cake-tech/bech32.git"
|
||||
source: git
|
||||
version: "0.2.0"
|
||||
bip32:
|
||||
|
@ -92,8 +92,8 @@ packages:
|
|||
description:
|
||||
path: "."
|
||||
ref: cake
|
||||
resolved-ref: b3ab2926c665f0e68b74a4a5f31059f7fcd817b7
|
||||
url: "git@github.com:cake-tech/bitcoin_flutter.git"
|
||||
resolved-ref: cbabfd87b6ce3cae6051a3e86ddb56e7a934e188
|
||||
url: "https://github.com/cake-tech/bitcoin_flutter.git"
|
||||
source: git
|
||||
version: "2.0.2"
|
||||
boolean_selector:
|
||||
|
|
Loading…
Reference in a new issue