我想通过我的串名单,并将其添加至案文件显示的,但我想要删除的[]. 我使用多选:^0.0.4包。
如果列表。
['S','M','L','XL']
我想要表示在文场- S M
代码:-
List<String> selected = [];
child: DropDownMultiSelect(
onChanged: (List<String> x) {
setState(() {
selected = x;
});
},
options: ['S', 'M', 'L', 'XL'],
selectedValues: selected,
whenEmpty: 'Select Size',
),
DataCell(Text(
'$selected ',
style: const TextStyle(
color: Colors.white,
fontSize: 25.0,
),
)),