first step of ProductDetailPage refactor

merge-update-with-lab-changes
Elham Rababh 4 years ago
parent a269b514a9
commit 769dc4e0ac

@ -117,8 +117,6 @@ class __ProductDetailPageState extends State<ProductDetailPage> {
height: 4,
),
Container(
width: 500,
height: 220,
color: Colors.white,
child: ProductNameAndPrice(
context,
@ -134,8 +132,6 @@ class __ProductDetailPageState extends State<ProductDetailPage> {
height: 6,
),
Container(
width: 500,
height: 100,
color: Colors.white,
child: Column(
mainAxisAlignment: MainAxisAlignment.start,
@ -151,14 +147,6 @@ class __ProductDetailPageState extends State<ProductDetailPage> {
),
),
Divider(color: Colors.grey),
Padding(
padding: const EdgeInsets.all(8.0),
child: Container(
child: Text(
TranslationBase.of(context).noData,
),
),
),
],
),
),

@ -185,6 +185,18 @@ class AppBarWidget extends StatelessWidget with PreferredSizeWidget {
),
centerTitle: true,
actions: <Widget>[
/// 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(

Loading…
Cancel
Save