|
|
|
@ -60,7 +60,7 @@ class _ProductNameAndPriceState extends State<ProductNameAndPrice> {
|
|
|
|
height: 40,
|
|
|
|
height: 40,
|
|
|
|
padding: EdgeInsets.all(4),
|
|
|
|
padding: EdgeInsets.all(4),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
color: Color(0xffD02127),
|
|
|
|
color: Color(0xff14384B),
|
|
|
|
// color: Colors.red[700]
|
|
|
|
// color: Colors.red[700]
|
|
|
|
// borderRadius: BorderRadius.only(topLeft: Radius.circular(6)),
|
|
|
|
// borderRadius: BorderRadius.only(topLeft: Radius.circular(6)),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
@ -145,7 +145,7 @@ class _ProductNameAndPriceState extends State<ProductNameAndPrice> {
|
|
|
|
: Icons.favorite),
|
|
|
|
: Icons.favorite),
|
|
|
|
color: !widget.isInWishList!
|
|
|
|
color: !widget.isInWishList!
|
|
|
|
? Color(0xff2E303A)
|
|
|
|
? Color(0xff2E303A)
|
|
|
|
: Color(0xffD02127),
|
|
|
|
: Color(0xff14384B),
|
|
|
|
onPressed: () async {
|
|
|
|
onPressed: () async {
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (widget.customerId != null) {
|
|
|
|
if (widget.customerId != null) {
|
|
|
|
@ -172,7 +172,7 @@ class _ProductNameAndPriceState extends State<ProductNameAndPrice> {
|
|
|
|
: Icons.favorite),
|
|
|
|
: Icons.favorite),
|
|
|
|
color: !widget.isInWishList!
|
|
|
|
color: !widget.isInWishList!
|
|
|
|
? Color(0xff2E303A)
|
|
|
|
? Color(0xff2E303A)
|
|
|
|
: Color(0xffD02127),
|
|
|
|
: Color(0xff14384B),
|
|
|
|
onPressed: () async {
|
|
|
|
onPressed: () async {
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (widget.customerId != null) {
|
|
|
|
if (widget.customerId != null) {
|
|
|
|
@ -292,8 +292,8 @@ class _ProductNameAndPriceState extends State<ProductNameAndPrice> {
|
|
|
|
// initialRating: double.parse(
|
|
|
|
// initialRating: double.parse(
|
|
|
|
// widget.item.approvedRatingSum.toString()),
|
|
|
|
// widget.item.approvedRatingSum.toString()),
|
|
|
|
// size: 18.0,
|
|
|
|
// size: 18.0,
|
|
|
|
// filledColor: Color(0XFFD02127),
|
|
|
|
// filledColor: Color(0xff14384B),
|
|
|
|
// emptyColor: Color(0XFFD02127),
|
|
|
|
// emptyColor: Color(0xff14384B),
|
|
|
|
// isHalfAllowed: true,
|
|
|
|
// isHalfAllowed: true,
|
|
|
|
// halfFilledIcon: Icons.star_half,
|
|
|
|
// halfFilledIcon: Icons.star_half,
|
|
|
|
// filledIcon: Icons.star,
|
|
|
|
// filledIcon: Icons.star,
|
|
|
|
@ -366,6 +366,6 @@ class _ProductNameAndPriceState extends State<ProductNameAndPrice> {
|
|
|
|
if (widget.isStockAvailable)
|
|
|
|
if (widget.isStockAvailable)
|
|
|
|
return Color(0xFF5AB145);
|
|
|
|
return Color(0xFF5AB145);
|
|
|
|
else
|
|
|
|
else
|
|
|
|
return Color(0xFFD02127);
|
|
|
|
return Color(0xff14384B);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|