custom_dropdown 0.0.2 copy "custom_dropdown: ^0.0.2" to clipboard
custom_dropdown: ^0.0.2 copied to clipboard

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
20
pub points
57%
popularity

Publisher

unverified uploader

A simple dropdown library with custom style.

Repository (GitHub)
View/report issues

License

Apache-2.0 (LICENSE)

Dependencies

flutter

More

Packages that depend on custom_dropdown