icemanbsi / searchable_dropdown

MIT License
107 stars 162 forks source link

How to add border around the search bar . #63

Open sarrathy opened 4 years ago

sarrathy commented 4 years ago

2161479-200

csabag commented 4 years ago
Container(
                  decoration: ShapeDecoration(
                    color: Colors.black,
                    shape: RoundedRectangleBorder(
                      side: BorderSide(width: 1, style: BorderStyle.solid, color: Colors.black),
                      borderRadius: BorderRadius.all(Radius.circular(8)),
                    ),
                  ),
                  child: SearchableDropdown.single(
                        items: dropdownCityListItems,
                        value: selectedValue,
                        iconEnabledColor: AppColors.GREEN_COLOR,
                        hint: Padding(
                          padding: const EdgeInsets.all(2.0),
                          child: Text("Select one"),
                        ),
                        searchHint: "Select one",
                        menuBackgroundColor: Colors.black,
                        underline: SizedBox(height: 0,width: 0),
                        onChanged: (value) {
                          setState(() {
                            selectedValue = value;
                          });
                        },
                        isExpanded: true,
                      )
              )