Open muralikrishnanmt opened 3 years ago
Searching is not working when i use the value as the id. Here is the code
Center( child: SearchableDropdown.single( isExpanded: true, value: selectedDistcrictID, hint: "Select one", searchHint: "Select one", items: data.map( (list) { return DropdownMenuItem( child: Text(list['district]), value: `list['districtID'],` ); }, ).toList(), onChanged: (value) { setState(() { selectedDistcrictID = value; print(selectedDistcrictID); }); }, ), ),
Searching is not working when i use the value as the id. Here is the code