Skip to content

boomcx/spinner_box

Repository files navigation

The drop-down criteria filter box supports single selection, multiple selection, and user-defined filtering content.

pub package

demo link:flutter web link。

Example description

Spinner Box

Simple use

  SpinnerBox.rebuilder(
            titles: const ['单选条件', '单选条件'],
            builder: (notifier) {
              return [
                SpinnerFilter(
                  data: _condition1,
                  onCompleted: (result, name, data) {
                    notifier.updateName(name);
                    setState(() {
                      _result = result;
                      _condition1 = data;
                    });
                  },
                ).heightPart,
                ...
              ];
            },
          ),

Update the title or highlighting of the selected item

  notifier.updateName(name);
or
  notifier.setHighlight(true)

About

A drop-down filter box.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages