Flutter DropDown Widget.

Hey guys, It's time of quarantine. Can't say anything in boring lockdown life. But we can learn interesting things and new skills in between, that would be useful for us.

So I almost done the appbrewery course in udemy from Ms.Angela. Actually It's useful for me to learn the basics of dart and flutter.

You can choose free course from appbrewery or buy this course in udemy.

Now we move the topics about the Dropdown.

you can simply check my gist in github. It's very easier and simple.


Padding(
                  padding: const EdgeInsets.all(8.0),
                  child: DropdownButton(
                    value: _selectedCountry,
                    items: _dropdownMenuItems,
                    isExpanded: true,
                    underline: SizedBox(),
                    onChanged: onChangeDropdownItem,
/*                    hint: Text(
                      "Select a Country",
                      style:
                          TextStyle(fontWeight: FontWeight.bold, fontSize: 18),
                    ),*/ // you can set hint like that.
                  ),
                )

Comments

Popular posts from this blog

Flutter Bloc - Clean Architecture

What's new in android 14?

Dependencies vs Dev Dependencies in Flutter