mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-03-11 08:56:53 +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:
|
initialIsAddressEditable:
|
||||||
exchangeViewModel.isReceiveAddressEnabled,
|
exchangeViewModel.isReceiveAddressEnabled,
|
||||||
isAmountEstimated: true,
|
isAmountEstimated: true,
|
||||||
currencies: CryptoCurrency.all,
|
currencies: exchangeViewModel.receiveCurrencies,
|
||||||
onCurrencySelected: (currency) =>
|
onCurrencySelected: (currency) =>
|
||||||
exchangeViewModel.changeReceiveCurrency(
|
exchangeViewModel.changeReceiveCurrency(
|
||||||
currency: currency),
|
currency: currency),
|
||||||
|
|
|
@ -45,6 +45,7 @@ class CurrencyPickerState extends State<CurrencyPicker> {
|
||||||
color: Palette.darkBlueCraiola,
|
color: Palette.darkBlueCraiola,
|
||||||
);
|
);
|
||||||
final int crossAxisCount = 3;
|
final int crossAxisCount = 3;
|
||||||
|
final int maxNumberItemsInAlert = 12;
|
||||||
final int itemsCount;
|
final int itemsCount;
|
||||||
final double backgroundHeight = 280;
|
final double backgroundHeight = 280;
|
||||||
final double thumbHeight = 72;
|
final double thumbHeight = 72;
|
||||||
|
@ -148,6 +149,7 @@ class CurrencyPickerState extends State<CurrencyPicker> {
|
||||||
);
|
);
|
||||||
})
|
})
|
||||||
),
|
),
|
||||||
|
if (itemsCount > maxNumberItemsInAlert)
|
||||||
CakeScrollbar(
|
CakeScrollbar(
|
||||||
backgroundHeight: backgroundHeight,
|
backgroundHeight: backgroundHeight,
|
||||||
thumbHeight: thumbHeight,
|
thumbHeight: thumbHeight,
|
||||||
|
|
|
@ -70,7 +70,7 @@ packages:
|
||||||
path: "."
|
path: "."
|
||||||
ref: cake
|
ref: cake
|
||||||
resolved-ref: "02fef082f20af13de00b4e64efb93a2c1e5e1cf2"
|
resolved-ref: "02fef082f20af13de00b4e64efb93a2c1e5e1cf2"
|
||||||
url: "git@github.com:cake-tech/bech32.git"
|
url: "https://github.com/cake-tech/bech32.git"
|
||||||
source: git
|
source: git
|
||||||
version: "0.2.0"
|
version: "0.2.0"
|
||||||
bip32:
|
bip32:
|
||||||
|
@ -92,8 +92,8 @@ packages:
|
||||||
description:
|
description:
|
||||||
path: "."
|
path: "."
|
||||||
ref: cake
|
ref: cake
|
||||||
resolved-ref: b3ab2926c665f0e68b74a4a5f31059f7fcd817b7
|
resolved-ref: cbabfd87b6ce3cae6051a3e86ddb56e7a934e188
|
||||||
url: "git@github.com:cake-tech/bitcoin_flutter.git"
|
url: "https://github.com/cake-tech/bitcoin_flutter.git"
|
||||||
source: git
|
source: git
|
||||||
version: "2.0.2"
|
version: "2.0.2"
|
||||||
boolean_selector:
|
boolean_selector:
|
||||||
|
|
Loading…
Reference in a new issue