diff --git a/lib/pages/pharmacies/screens/product-details/product-detail.dart b/lib/pages/pharmacies/screens/product-details/product-detail.dart index b0777c19..5f596e3a 100644 --- a/lib/pages/pharmacies/screens/product-details/product-detail.dart +++ b/lib/pages/pharmacies/screens/product-details/product-detail.dart @@ -117,8 +117,6 @@ class __ProductDetailPageState extends State { height: 4, ), Container( - width: 500, - height: 220, color: Colors.white, child: ProductNameAndPrice( context, @@ -134,8 +132,6 @@ class __ProductDetailPageState extends State { height: 6, ), Container( - width: 500, - height: 100, color: Colors.white, child: Column( mainAxisAlignment: MainAxisAlignment.start, @@ -151,14 +147,6 @@ class __ProductDetailPageState extends State { ), ), Divider(color: Colors.grey), - Padding( - padding: const EdgeInsets.all(8.0), - child: Container( - child: Text( - TranslationBase.of(context).noData, - ), - ), - ), ], ), ), diff --git a/lib/widgets/others/app_scafold_detail_page.dart b/lib/widgets/others/app_scafold_detail_page.dart index 99f78062..595e0872 100644 --- a/lib/widgets/others/app_scafold_detail_page.dart +++ b/lib/widgets/others/app_scafold_detail_page.dart @@ -185,6 +185,18 @@ class AppBarWidget extends StatelessWidget with PreferredSizeWidget { ), centerTitle: true, actions: [ + /// TODO Elham* fix this + if(isPharmacy) + IconButton( + icon: Icon(Icons.shopping_cart), + color: Colors.grey, + onPressed: () { + Navigator.push( + context, + MaterialPageRoute( + builder: (context) => CartOrderPage()), + ); + }), image != null ? InkWell( onTap: () => Navigator.push(