#sprint-4
This commit is contained in:
parent
f7f99bf3b1
commit
89333d054d
@ -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,
|
||||
);
|
||||
},
|
||||
),
|
||||
|
Loading…
x
Reference in New Issue
Block a user