spinner_box 0.1.0 spinner_box: ^0.1.0 copied to clipboard
The drop-down criteria filter box supports single selection, multiple selection, and user-defined filtering content.
The drop-down criteria filter box supports single selection, multiple selection, and user-defined filtering content.
demo link:flutter web link。
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)