|
|
|
|
@ -290,18 +290,19 @@ class __ProductDetailPageState extends State<ProductDetailPage> {
|
|
|
|
|
product: widget.product,
|
|
|
|
|
previousModel: model,
|
|
|
|
|
)
|
|
|
|
|
: isAvailability && widget.product.stockAvailability != "Out of stock"
|
|
|
|
|
: isAvailability
|
|
|
|
|
//&& widget.product.stockAvailability != "Out of stock"
|
|
|
|
|
? AvailabilityInfo(previousModel: model)
|
|
|
|
|
: isAvailability && widget.product.stockAvailability == "Out of stock"
|
|
|
|
|
? Container(
|
|
|
|
|
// padding: EdgeInsets.all(15),
|
|
|
|
|
padding: EdgeInsets.fromLTRB(15, 15, 15, 20),
|
|
|
|
|
margin: EdgeInsets.only(bottom: 20),
|
|
|
|
|
alignment: Alignment.center,
|
|
|
|
|
child: Text(
|
|
|
|
|
TranslationBase.of(context).noLocationAvailable,
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
// : isAvailability && widget.product.stockAvailability == "Out of stock"
|
|
|
|
|
// ? Container(
|
|
|
|
|
// // padding: EdgeInsets.all(15),
|
|
|
|
|
// padding: EdgeInsets.fromLTRB(15, 15, 15, 20),
|
|
|
|
|
// margin: EdgeInsets.only(bottom: 20),
|
|
|
|
|
// alignment: Alignment.center,
|
|
|
|
|
// child: Text(
|
|
|
|
|
// TranslationBase.of(context).noLocationAvailable,
|
|
|
|
|
// ),
|
|
|
|
|
// )
|
|
|
|
|
: Container(),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
|