Last updated:
0 purchases
searchable dropdown clear selection
TODO: This package will help the Developer to implement Searchable Dropdown with alot more features like clear seleciton on
button click fetch values from sqlite.
Features #
TODO: This package will help the Developer to implement Searchable Dropdown with alot more features like clear seleciton on
button click fetch values from sqlite.
Getting started #
TODO: This package will help the Developer to implement Searchable Dropdown with alot more features like clear seleciton on
button click fetch values from sqlite.
Usage #
TODO: I have add the very very useful example. Add longer examples
to `
SearchableDropDownClearSelection(
showClearButton:true,
items: _citiesList,
label: 'Select parcel Id',
decoration:
BoxDecoration(border: Border.all(color: Colors.blue)),
prefixIcon: Padding(
padding: const EdgeInsets.all(0.0),
child: Icon(Icons.search),
),
dropDownMenuItems: _citiesList?.map((item) {
return item.toString();
})?.toList() ??
[],
onChanged: (value) {
if (value != null) {
spn_parcel_no_firstValue = value;
if (spn_parcel_no_firstValue != "Select Parcel Id") {
print("city1= $spn_parcel_no_firstValue");
setState(() {
isErrorConditionMetParcelId = false;
});
}else{
print("else2= $spn_parcel_no_firstValue");
spn_parcel_no_firstValue = 'Select Parcel Id';
}
} else {
print("else1= $spn_parcel_no_firstValue");
spn_parcel_no_firstValue = 'Select Parcel Id';
}
},
onClearPressed: () {
// Handle clear button press
print('Clear button pressed');
// Reset the selected value to an initial state (e.g., null)
// setState(() {
// selectedValue = null;
// });
},
)` folder.
copied to clipboard
const like = 'sample';
copied to clipboard
Additional information #
TODO: You can easily find the package in pub.dev.
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.