sprint-1 #1

Merged
user3 merged 19 commits from sprint-1 into main 2025-05-26 14:34:28 +00:00
Showing only changes of commit a10de7e98d - Show all commits

View File

@ -7,12 +7,10 @@ class PrimaryCard extends StatefulWidget {
required this.title,
required this.category,
required this.price,
this.onChange,
});
final String title;
final String category;
final String price;
final Function(bool value)? onChange;
@override
State<PrimaryCard> createState() => _PrimaryCardState();
@ -39,7 +37,7 @@ class _PrimaryCardState extends State<PrimaryCard> {
style: captionSemibold.copyWith(color: captionColor),
),
SizedBox(height: 4),
Text(widget.price, style: title3Semibold),
Text("${widget.price}", style: title3Semibold),
],
),
inCart
@ -47,7 +45,6 @@ class _PrimaryCardState extends State<PrimaryCard> {
onPressed: () {
setState(() {
inCart = !inCart;
widget.onChange!(inCart);
});
},
size: 'small',