Search packages, repositories and app categories

GitHub repositoryBlasanka/flutter_dropdown

flutter_dropdown

This does make Flutter Framework complicated dropdown button less complicated.

flutter_dropdown project cover
Stars
4
Forks
4
Last push (UTC)
Oct 9, 2022
Project status
Active

Original README

English project snapshot. Visit GitHub for the latest content.

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,
),
B Liyanage Asanka GitHub avatar
GitHub author

B Liyanage Asanka ↗

Mobile developer who fallen in love with Flutter Framework

SLCoderSri LankaOfficial website ↗
LanguagesDartKotlinSwiftObjective-C

Categories

Packages published by this repository

Dependencies used

Dependency list 2 items

  • flutter{"sdk":"flutter"}
  • flutter_testDevelopment{"sdk":"flutter"}

How do I choose a repository?

Start with your use case, compare repository activity, and check the original project before adopting it.

  1. Search by repository name, owner or description, then narrow the results by topic.
  2. Compare stars, forks and recent pushes. Stars show community interest, not a guarantee of quality.
  3. Read the README, license and issues on GitHub before using a project.

Sources and maintenance

“A repository is the most basic element of GitHub.”

GitHub Docs — About repositories ↗