flutter_dropdown

Creator: coderz1093

Last updated:

Add to Cart

Description:

flutter dropdown

dropdown #
This does make Flutter Framework complicated dropdown button less complicated.
Simple widget:
DropDown(
items: ["Male", "Female", "Other"],
hint: Text("Male"),
icon: Icon(
Icons.expand_more,
color: Colors.blue,
),
onChanged: print,
),
copied to clipboard
With custom dropdown item widget:
DropDown<String>(
items: <String>["Male", "Female", "Other"],
icon: Icon(
Icons.expand_more,
color: Colors.blue,
),
customWidgets: <Widget>[
Row(
children: <Widget>[
Text("Male"),
CircleAvatar(
backgroundImage: NetworkImage(
"https://raw.githubusercontent.com/rrousselGit/provider/master/resources/expanded_devtools.jpg"),
),
],
),
Row(
children: <Widget>[
Text("Female"),
CircleAvatar(
backgroundImage: NetworkImage(
"https://raw.githubusercontent.com/rrousselGit/provider/master/resources/expanded_devtools.jpg"),
),
],
),
Row(
children: <Widget>[
Text("Other"),
CircleAvatar(
backgroundImage: NetworkImage(
"https://raw.githubusercontent.com/rrousselGit/provider/master/resources/expanded_devtools.jpg"),
),
],
)
],
hint: Text("Select Gender"),
onChanged: print,
),
copied to clipboard

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.