From 89333d054d8166cea2cdb7c1c675646619a19f31 Mon Sep 17 00:00:00 2001 From: User3 Date: Wed, 28 May 2025 12:49:27 +0300 Subject: [PATCH] #sprint-4 --- lib/categories.dart | 31 +++++++++++++++++-------------- 1 file changed, 17 insertions(+), 14 deletions(-) diff --git a/lib/categories.dart b/lib/categories.dart index 9ad87f1..1f09295 100644 --- a/lib/categories.dart +++ b/lib/categories.dart @@ -29,21 +29,24 @@ class _CategoriesWidgetState extends State { 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, ); }, ),