|
|
|
|
@ -185,7 +185,8 @@ class __ProductDetailPageState extends State<ProductDetailPage> {
|
|
|
|
|
),
|
|
|
|
|
Container(
|
|
|
|
|
// width: 500,
|
|
|
|
|
margin: EdgeInsets.only(bottom: 6),
|
|
|
|
|
margin: EdgeInsets.only(bottom: 10),
|
|
|
|
|
padding: EdgeInsets.only(bottom: 10),
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
@ -255,7 +256,7 @@ class __ProductDetailPageState extends State<ProductDetailPage> {
|
|
|
|
|
GifLoaderDialogUtils.showMyDialog(context);
|
|
|
|
|
await model.getProductLocationData(widget.product.sku);
|
|
|
|
|
GifLoaderDialogUtils.hideDialog(context);
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
|
setState(() {
|
|
|
|
|
isDetails = false;
|
|
|
|
|
isReviews = false;
|
|
|
|
|
@ -289,7 +290,7 @@ class __ProductDetailPageState extends State<ProductDetailPage> {
|
|
|
|
|
)
|
|
|
|
|
: isAvailability
|
|
|
|
|
? AvailabilityInfo(
|
|
|
|
|
previousModel: model,
|
|
|
|
|
previousModel: model
|
|
|
|
|
)
|
|
|
|
|
: Container(),
|
|
|
|
|
],
|
|
|
|
|
@ -298,17 +299,17 @@ class __ProductDetailPageState extends State<ProductDetailPage> {
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 10,
|
|
|
|
|
),
|
|
|
|
|
if (projectViewModel.isLogin)
|
|
|
|
|
RecommendedProducts(
|
|
|
|
|
product: widget.product,
|
|
|
|
|
productDetailViewModel: model,
|
|
|
|
|
addToWishlistFunction: (itemID) async {
|
|
|
|
|
await addToWishlistFunction(itemID: itemID, model: model);
|
|
|
|
|
},
|
|
|
|
|
deleteFromWishlistFunction: (itemID) async {
|
|
|
|
|
await deleteFromWishlistFunction(itemID: itemID, model: model);
|
|
|
|
|
},
|
|
|
|
|
)
|
|
|
|
|
// if (projectViewModel.isLogin)
|
|
|
|
|
// RecommendedProducts(
|
|
|
|
|
// product: widget.product,
|
|
|
|
|
// productDetailViewModel: model,
|
|
|
|
|
// addToWishlistFunction: (itemID) async {
|
|
|
|
|
// await addToWishlistFunction(itemID: itemID, model: model);
|
|
|
|
|
// },
|
|
|
|
|
// deleteFromWishlistFunction: (itemID) async {
|
|
|
|
|
// await deleteFromWishlistFunction(itemID: itemID, model: model);
|
|
|
|
|
// },
|
|
|
|
|
// )
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
|