|
|
|
@ -25,7 +25,7 @@ class ProductNameAndPrice extends StatefulWidget {
|
|
|
|
|
AuthenticatedUserObject authenticatedUserObject = locator<AuthenticatedUserObject>();
|
|
|
|
|
|
|
|
|
|
ProductNameAndPrice(this.context, this.item,
|
|
|
|
|
{this.customerId, this.isInWishList, this.notifyMeWhenAvailable, this.addToWishlistFunction, this.deleteFromWishlistFunction, this.isStockAvailable, this.stockAvailability});
|
|
|
|
|
{this.customerId, this.isInWishList, this.notifyMeWhenAvailable, this.addToWishlistFunction, this.deleteFromWishlistFunction, this.isStockAvailable = true, this.stockAvailability});
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
_ProductNameAndPriceState createState() => _ProductNameAndPriceState();
|
|
|
|
@ -56,7 +56,7 @@ class _ProductNameAndPriceState extends State<ProductNameAndPrice> {
|
|
|
|
|
),
|
|
|
|
|
// SizedBox(width: 20),
|
|
|
|
|
if (widget.authenticatedUserObject.isLogin)
|
|
|
|
|
widget.isStockAvailable && widget.customerId != null
|
|
|
|
|
!widget.isStockAvailable && widget.customerId != null
|
|
|
|
|
? InkWell(
|
|
|
|
|
onTap: () => widget.notifyMeWhenAvailable(context, widget.item.id),
|
|
|
|
|
child: Row(children: [
|
|
|
|
|