custom_dropdown 0.0.2

Flutter Android iOS web

A simple dropdown library with custom style.

Custom Dropdown #

A simple dropdown library with custom style for Flutter.

Quick Start #

Add CustomDropdown to the widget tree

class TestWidgetState extends State<TestWidget> {
  int _checkboxValue;
  
  @override
  Widget build(BuildContext context) {
    return Container(
      child: CustomDropdown(
        valueIndex: _checkboxValue,
        hint: "Hint",
        items: [
          CustomDropdownItem(text: "first"),
          CustomDropdownItem(text: "second"),
          CustomDropdownItem(text: "third"),
          CustomDropdownItem(text: "fourth"),
        ],
        onChanged: (newValue) {
          setState(() => _checkboxValue = newValue);
        },
      ),
    );
  }
}
2
likes
80
pub points
71%
popularity

A simple dropdown library with custom style.

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

djonline96@gmail.com

License

Apache 2.0 (LICENSE)

Dependencies

flutter

More

Packages that depend on custom_dropdown