0 purchases
dropdown cupertino
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. null key is optional,
// value: text that will appear on widgets
Map<Person?, String> personMap = {
null: "INITIAL",
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");
}),
)
copied to clipboard
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 #
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.