Closed iabdousd closed 11 months ago
@iabdousd Thank you for your contribution but customize search text field was implemented in theme. Released in v2.0.18.
showCurrencyPicker(
context: context,
theme: CurrencyPickerThemeData(
// Optional. Styles the search field.
inputDecoration: InputDecoration(
labelText: 'Search',
hintText: 'Start typing to search',
prefixIcon: const Icon(Icons.search),
border: OutlineInputBorder(
borderSide: BorderSide(
color: const Color(0xFF8C98A8).withOpacity(0.2),
),
),
),
),
onSelect: (Currency currency) {
print('Select currency: ${currency.name}');
},
);
Added new searchFieldDecoration to customize the decoration of the search field