remove add to cart

merge-update-with-lab-changes
Elham Rababh 4 years ago
parent 7c15bca746
commit 338901d423

@ -1,3 +1,4 @@
import 'package:diplomaticquarterapp/core/model/pharmacies/PharmacyProduct.dart';
import 'package:diplomaticquarterapp/pages/pharmacies/screens/product-details/product-detail.dart';
import 'package:diplomaticquarterapp/uitl/app_toast.dart';
import 'package:diplomaticquarterapp/uitl/translations_delegate_base.dart';
@ -10,6 +11,11 @@ import '../cart-order-page.dart';
import 'CustomIcon.dart';
class ProductAppBar extends StatelessWidget with PreferredSizeWidget {
final PharmacyProduct product;
const ProductAppBar({Key key, this.product}) : super(key: key);
@override
Widget build(BuildContext context) {
return Container(
@ -80,6 +86,7 @@ class ProductAppBar extends StatelessWidget with PreferredSizeWidget {
return Container(
child: new Wrap(
children: <Widget>[
if( product.stockAvailability != 'Out of stock')
new ListTile(
leading: Icon(Icons.shopping_cart),
title: Text(

@ -58,7 +58,6 @@ class __ProductDetailPageState extends State<ProductDetailPage>
bool isDetails = true;
bool isReviews = false;
bool isAvailability = false;
int _activeTab = 0;
checkWishlist() async {
GifLoaderDialogUtils.showMyDialog(context);
@ -112,7 +111,7 @@ class __ProductDetailPageState extends State<ProductDetailPage>
isShowAppBar: true,
isPharmacy: true,
isShowDecPage: false,
customAppBar: ProductAppBar(),
customAppBar: ProductAppBar(product: widget.product,),
body: SingleChildScrollView(
child: Column(
children: [

Loading…
Cancel
Save