mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-11-17 01:37:40 +00:00
Merge pull request #146 from cake-tech/CAKE-341-UI-scrollbar-fixes
CAKE-341 | fixed scrollbar for currency_picker.dart; applied receive …
This commit is contained in:
commit
cd9df0c8c3
2 changed files with 3 additions and 1 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,
|
||||
|
|
Loading…
Reference in a new issue