/Custom-Dropdown

A simple dropdown library with custom style for Flutter

Primary LanguageDartApache License 2.0Apache-2.0

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);
        },
      ),
    );
  }
}