Merge pull request #1261 from sahej-dev/main

fix: Extra spacing in multiselect cell
This commit is contained in:
Nathan.fooo 2022-10-11 08:21:42 +08:00 committed by GitHub
commit 6b528733fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -210,15 +210,17 @@ class _SelectOptionWrapState extends State<SelectOptionWrap> {
} else {
final children = widget.selectOptions.map(
(option) {
return SelectOptionTag.fromOption(
context: context,
option: option,
return Padding(
padding: const EdgeInsets.only(right: 4),
child: SelectOptionTag.fromOption(
context: context,
option: option,
),
);
},
).toList();
child = Wrap(
spacing: 4,
runSpacing: 2,
children: children,
);