#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] Color currentItemColor = selectedItem == widget.itemsList[index]
? primaryColor ? primaryColor
: inputBgColor; : inputBgColor;
return Chips( return Container(
onPressed: () => { margin: EdgeInsets.only(right: 16),
setState(() { child: Chips(
print(currentItem); onPressed: () => {
selectedItem = currentItem; setState(() {
}), print(currentItem);
}, selectedItem = currentItem;
buttonText: widget.itemsList[index], }),
buttonStyle: textMedium.copyWith( },
fontWeight: FontWeight.w500, buttonText: widget.itemsList[index],
color: selectedItem == widget.itemsList[index] buttonStyle: textMedium.copyWith(
? whiteColor fontWeight: FontWeight.w500,
: descColor, color: selectedItem == widget.itemsList[index]
? whiteColor
: descColor,
),
bgColor: currentItemColor,
), ),
bgColor: currentItemColor,
); );
}, },
), ),