improvement.

main_production_RSG
Sikander Saleem 2 months ago
parent 35d4020013
commit 359cd30c5c

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

Loading…
Cancel
Save