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, ); }, ),