flutter_dropdown 1.0.1+hotfix.1 copy "flutter_dropdown: ^1.0.1+hotfix.1" to clipboard
flutter_dropdown: ^1.0.1+hotfix.1 copied to clipboard

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: 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,
),
46
likes
150
points
34
downloads

Publisher

unverified uploader

Weekly Downloads

This does make Flutter Framework complicated dropdown button less complicated

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on flutter_dropdown