#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]
|
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,
|
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user