icemanbsi / searchable_dropdown

MIT License
107 stars 162 forks source link

is it possible to remove selected item from dropdown #126

Open waqaryounusjatt788 opened 3 years ago

waqaryounusjatt788 commented 3 years ago

Hi, I want to remove item without open dropdown and unchecked item from multiple dialog, i have set custom chip and want to remove item from top, here i am showing an example screen with you.

Source Code of Adding chips:

` selectedValueWidgetFn: (item) { return (Center( child: Card( shape: RoundedRectangleBorder( borderRadius: BorderRadius.circular(10), side: BorderSide( color: Colors.brown, width: 0.5, ), ), margin: EdgeInsets.all(12), child: Padding( padding: const EdgeInsets.all(8), child: Chip( label: Text( item.toString(), ), avatar: InkWell( onTap: () {

                    },
                    child: Icon(
                      Icons.close,
                    ),
                  ),
                ),
              ))));
    },

`

Simulator Screen Shot - iPhone 8 - 2021-03-30 at 12 37 16