mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-21 06:18:42 +02:00
CAKE-222 | fixed transaction priority picker on the send page
This commit is contained in:
@@ -746,6 +746,7 @@ class SendPage extends BasePage {
|
||||
Future<void> _setTransactionPriority(BuildContext context) async {
|
||||
final items = TransactionPriority.forWalletType(sendViewModel.walletType);
|
||||
final selectedItem = items.indexOf(sendViewModel.transactionPriority);
|
||||
final isShowScrollThumb = items.length > 3;
|
||||
|
||||
await showPopUp<void>(
|
||||
builder: (_) => Picker(
|
||||
@@ -755,7 +756,7 @@ class SendPage extends BasePage {
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
onItemSelected: (TransactionPriority priority) =>
|
||||
sendViewModel.setTransactionPriority(priority),
|
||||
isAlwaysShowScrollThumb: true,
|
||||
isAlwaysShowScrollThumb: isShowScrollThumb,
|
||||
),
|
||||
context: context);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user