|
|
|
|
@ -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(
|
|
|
|
|
|