#sprint-4

This commit is contained in:
User3 2025-05-28 12:49:27 +03:00
parent f7f99bf3b1
commit 89333d054d

View File

@ -29,21 +29,24 @@ class _CategoriesWidgetState extends State<CategoriesWidget> {
Color currentItemColor = selectedItem == widget.itemsList[index]
? primaryColor
: inputBgColor;
return Chips(
onPressed: () => {
setState(() {
print(currentItem);
selectedItem = currentItem;
}),
},
buttonText: widget.itemsList[index],
buttonStyle: textMedium.copyWith(
fontWeight: FontWeight.w500,
color: selectedItem == widget.itemsList[index]
? whiteColor
: descColor,
return Container(
margin: EdgeInsets.only(right: 16),
child: Chips(
onPressed: () => {
setState(() {
print(currentItem);
selectedItem = currentItem;
}),
},
buttonText: widget.itemsList[index],
buttonStyle: textMedium.copyWith(
fontWeight: FontWeight.w500,
color: selectedItem == widget.itemsList[index]
? whiteColor
: descColor,
),
bgColor: currentItemColor,
),
bgColor: currentItemColor,
);
},
),