The drop-down criteria filter box supports single selection, multiple selection, and user-defined filtering content.
demo link:flutter web link。
SpinnerBox.rebuilder(
titles: const ['单选条件', '单选条件'],
builder: (notifier) {
return [
SpinnerFilter(
data: _condition1,
onCompleted: (result, name, data) {
notifier.updateName(name);
setState(() {
_result = result;
_condition1 = data;
});
},
).heightPart,
...
];
},
),
notifier.updateName(name);
or
notifier.setHighlight(true)