build method
Implementation
@override
Widget build(BuildContext context) {
List<Widget> ls = _paths.mapIndex((idx, item) {
return RawChip(
label: _onLabel(item).text().paddings(right: 16),
selected: idx == _paths.length - 1,
selectedColor: Colors.blueAccent,
showCheckmark: false,
deleteButtonTooltipMessage: "选择",
deleteIcon: Icons.arrow_drop_down.icon(size: 24),
onDeleted: () {
_siblings(idx, item);
},
onPressed: () {
_tapItem(idx, item);
},
);
});
var last = RawChip(label: Icons.arrow_right.icon(), selected: false, selectedColor: Colors.blueAccent, showCheckmark: false, onPressed: _children);
ls.add(last);
return WrapRow(ls);
}