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, height: 4,
), ),
Container( Container(
width: 500,
height: 220,
color: Colors.white, color: Colors.white,
child: ProductNameAndPrice( child: ProductNameAndPrice(
context, context,
@ -134,8 +132,6 @@ class __ProductDetailPageState extends State<ProductDetailPage> {
height: 6, height: 6,
), ),
Container( Container(
width: 500,
height: 100,
color: Colors.white, color: Colors.white,
child: Column( child: Column(
mainAxisAlignment: MainAxisAlignment.start, mainAxisAlignment: MainAxisAlignment.start,
@ -151,14 +147,6 @@ class __ProductDetailPageState extends State<ProductDetailPage> {
), ),
), ),
Divider(color: Colors.grey), 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, centerTitle: true,
actions: <Widget>[ 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 image != null
? InkWell( ? InkWell(
onTap: () => Navigator.push( onTap: () => Navigator.push(

Loading…
Cancel
Save