searchable_dropdown_clear_selection 0.0.4 copy "searchable_dropdown_clear_selection: ^0.0.4" to clipboard
searchable_dropdown_clear_selection: ^0.0.4 copied to clipboard

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.
const like = 'sample';

Additional information #

TODO: You can easily find the package in pub.dev.

2
likes
60
points
2
downloads

Publisher

unverified uploader

Weekly Downloads

searchable_dropdown_clear_selection.

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on searchable_dropdown_clear_selection