dropdown_cupertino 0.0.6 copy "dropdown_cupertino: ^0.0.6" to clipboard
dropdown_cupertino: ^0.0.6 copied to clipboard

outdated

DropDown cupertino flutter package.

You can use this widget that can perform any enum selection on iOS and Android devices. Offers a simple aesthetic to your mobile app.

Features #

Select any enum with cupertino style

Getting started #

TODO: List prerequisites and provide or point to information on how to start using the package.

Usage #

There is an example, you can check it to /example folder.

// You can generate your custom enum
enum Person {
  yakup,
  burak,
  ramazan,
}
//key: your custom enum, value: text that will appear on widgets
Map<Person, String> personMap = {
  Person.yakup: "YAKUP",
  Person.ramazan: "RAMAZAN",
  Person.burak: "BURAK"
};

DropDownCupertino<Person>(
              initialText: "Select a Person :",
              pickList: personMap,
              height: 160,
              onSelectedItemChanged: ((Person selected) {
                debugPrint("Selected text is: $selected");
              }),
            )
  • initialText: Text to be seen before opening the menu.
  • pickList: Dropdown type.
  • height: Height of dropdown menu visible in app.
  • onSelectedItemChanged: Prints the selected item to the console.

Additional information #

Working on more flexible for it.

dropdown_cupertino #

3
likes
0
points
139
downloads

Publisher

unverified uploader

Weekly Downloads

DropDown cupertino flutter package.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on dropdown_cupertino