|
|
|
|
@ -185,19 +185,22 @@ class _MultipleItemDropDownMenuState<T extends Base, X extends LoadingListNotifi
|
|
|
|
|
spacing: 4.toScreenWidth,
|
|
|
|
|
children: [
|
|
|
|
|
for (int i = 0; i < _selectedItem.length; i++)
|
|
|
|
|
Chip(
|
|
|
|
|
backgroundColor: AppColor.backgroundTabBarColor(context),
|
|
|
|
|
side: BorderSide(color: AppColor.border2Color(context)),
|
|
|
|
|
label: Text(_selectedItem[i].name!),
|
|
|
|
|
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(30.0)),
|
|
|
|
|
labelStyle: AppTextStyles.tinyFont2.copyWith(color: AppColor.labelTextStyleColor(context)),
|
|
|
|
|
deleteIconColor: AppColor.icon2Color(context),
|
|
|
|
|
materialTapTargetSize: MaterialTapTargetSize.shrinkWrap,
|
|
|
|
|
onDeleted: () {
|
|
|
|
|
_selectedItem.removeAt(i);
|
|
|
|
|
setState(() {});
|
|
|
|
|
widget.onSelect!(_selectedItem);
|
|
|
|
|
},
|
|
|
|
|
Theme(
|
|
|
|
|
data: Theme.of(context).copyWith(splashColor: Colors.transparent, highlightColor: Colors.transparent),
|
|
|
|
|
child: Chip(
|
|
|
|
|
backgroundColor: AppColor.backgroundTabBarColor(context),
|
|
|
|
|
side: BorderSide(color: AppColor.border2Color(context)),
|
|
|
|
|
label: Text(_selectedItem[i].name!),
|
|
|
|
|
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(30.0)),
|
|
|
|
|
labelStyle: AppTextStyles.tinyFont2.copyWith(color: AppColor.labelTextStyleColor(context)),
|
|
|
|
|
deleteIconColor: AppColor.icon2Color(context),
|
|
|
|
|
materialTapTargetSize: MaterialTapTargetSize.shrinkWrap,
|
|
|
|
|
onDeleted: () {
|
|
|
|
|
_selectedItem.removeAt(i);
|
|
|
|
|
setState(() {});
|
|
|
|
|
widget.onSelect!(_selectedItem);
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
).paddingOnly(top: 4),
|
|
|
|
|
|