|
|
|
|
@ -1,4 +1,3 @@
|
|
|
|
|
import 'package:diplomaticquarterapp/config/config.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/config/shared_pref_kay.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/core/enum/viewstate.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/core/model/pharmacies/PharmacyProduct.dart';
|
|
|
|
|
@ -291,7 +290,7 @@ class __ProductDetailPageState extends State<ProductDetailPage> {
|
|
|
|
|
previousModel: model,
|
|
|
|
|
)
|
|
|
|
|
: isAvailability
|
|
|
|
|
//&& widget.product.stockAvailability != "Out of stock"
|
|
|
|
|
//&& widget.product.stockAvailability != "Out of stock"
|
|
|
|
|
? AvailabilityInfo(previousModel: model)
|
|
|
|
|
// : isAvailability && widget.product.stockAvailability == "Out of stock"
|
|
|
|
|
// ? Container(
|
|
|
|
|
@ -303,7 +302,7 @@ class __ProductDetailPageState extends State<ProductDetailPage> {
|
|
|
|
|
// TranslationBase.of(context).noLocationAvailable,
|
|
|
|
|
// ),
|
|
|
|
|
// )
|
|
|
|
|
: Container(),
|
|
|
|
|
: Container(),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
@ -374,5 +373,4 @@ class __ProductDetailPageState extends State<ProductDetailPage> {
|
|
|
|
|
notifyMeWhenAvailable({itemId, customerId, ProductDetailViewModel model}) async {
|
|
|
|
|
await model.notifyMe(customerId, itemId);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|