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

outdated

This does make Flutter Framework complicated dropdown button less complicated

dropdown #

This does make Flutter Framework complicated dropdown button less complicated.

Simple widget:

DropDown(
  items: ["Male", "Female", "Other"],
  hint: "Male",
  onChange: print,
),

With custom dropdown item widget:

DropDown<String>(
  items: <String>["Male", "Female", "Other"],
  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: "Select gender",
  onChange: print,
),
46
likes
0
pub points
91%
popularity

Publisher

unverified uploader

This does make Flutter Framework complicated dropdown button less complicated

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on flutter_dropdown