mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-12-04 12:34:14 +01:00
CAKE-222 | applied adaptive picker to send and settings pages
This commit is contained in:
@@ -751,7 +751,6 @@ class SendPage extends BasePage {
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
onItemSelected: (TransactionPriority priority) =>
|
||||
sendViewModel.setTransactionPriority(priority),
|
||||
isAlwaysShowScrollThumb: isShowScrollThumb,
|
||||
),
|
||||
context: context);
|
||||
}
|
||||
|
||||
@@ -43,7 +43,6 @@ class SettingsPage extends BasePage {
|
||||
return SettingsPickerCell<dynamic>(
|
||||
title: item.title,
|
||||
selectedItem: item.selectedItem(),
|
||||
isAlwaysShowScrollThumb: item.isAlwaysShowScrollThumb,
|
||||
items: item.items,
|
||||
onItemSelected: (dynamic value) => item.onItemSelected(value),
|
||||
);
|
||||
|
||||
@@ -9,8 +9,7 @@ class SettingsPickerCell<ItemType> extends StandardListRow {
|
||||
{@required String title,
|
||||
this.selectedItem,
|
||||
this.items,
|
||||
this.onItemSelected,
|
||||
this.isAlwaysShowScrollThumb})
|
||||
this.onItemSelected})
|
||||
: super(
|
||||
title: title,
|
||||
isSelected: false,
|
||||
@@ -24,7 +23,6 @@ class SettingsPickerCell<ItemType> extends StandardListRow {
|
||||
selectedAtIndex: selectedAtIndex,
|
||||
title: S.current.please_select,
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
isAlwaysShowScrollThumb: isAlwaysShowScrollThumb,
|
||||
onItemSelected: (ItemType item) =>
|
||||
onItemSelected?.call(item)));
|
||||
});
|
||||
@@ -32,7 +30,6 @@ class SettingsPickerCell<ItemType> extends StandardListRow {
|
||||
final ItemType selectedItem;
|
||||
final List<ItemType> items;
|
||||
final void Function(ItemType item) onItemSelected;
|
||||
final bool isAlwaysShowScrollThumb;
|
||||
|
||||
@override
|
||||
Widget buildTrailing(BuildContext context) {
|
||||
|
||||
Reference in New Issue
Block a user