v1.0.1+hotfix.1
flutter_dropdown
This does make Flutter Framework complicated dropdown button less complicated
47Likes 4430-day downloads160Pub points
AndroidiOSWebmacOSWindowsLinux
This does make Flutter Framework complicated dropdown button less complicated.
English project snapshot. Visit GitHub for the latest content.
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,
),
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,
),
Dependency list 2 items
{"sdk":"flutter"}{"sdk":"flutter"}Start with your use case, compare repository activity, and check the original project before adopting it.
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗