added shopping cart to categories

merge-update-with-lab-changes
Fatimah Alshammari 5 years ago
parent 29d0afdea4
commit 10f75191c6

@ -2,6 +2,7 @@ import 'package:diplomaticquarterapp/config/size_config.dart';
import 'package:diplomaticquarterapp/core/model/pharmacy/categorise_parent_model.dart'; import 'package:diplomaticquarterapp/core/model/pharmacy/categorise_parent_model.dart';
import 'package:diplomaticquarterapp/core/viewModels/pharmacy_categorise_view_model.dart'; import 'package:diplomaticquarterapp/core/viewModels/pharmacy_categorise_view_model.dart';
import 'package:diplomaticquarterapp/core/viewModels/project_view_model.dart'; import 'package:diplomaticquarterapp/core/viewModels/project_view_model.dart';
import 'package:diplomaticquarterapp/pages/pharmacies/screens/cart-order-page.dart';
import 'package:diplomaticquarterapp/pages/pharmacies/screens/product-details/product-detail.dart'; import 'package:diplomaticquarterapp/pages/pharmacies/screens/product-details/product-detail.dart';
import 'package:diplomaticquarterapp/pages/sub_categorise_page.dart'; import 'package:diplomaticquarterapp/pages/sub_categorise_page.dart';
import 'package:diplomaticquarterapp/uitl/translations_delegate_base.dart'; import 'package:diplomaticquarterapp/uitl/translations_delegate_base.dart';
@ -15,6 +16,7 @@ import 'package:diplomaticquarterapp/widgets/others/network_base_view.dart';
import 'package:diplomaticquarterapp/widgets/transitions/fade_page.dart'; import 'package:diplomaticquarterapp/widgets/transitions/fade_page.dart';
import 'package:flutter/cupertino.dart'; import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:font_awesome_flutter/font_awesome_flutter.dart';
import 'package:provider/provider.dart'; import 'package:provider/provider.dart';
import 'package:diplomaticquarterapp/pages/sub_categories_modalsheet.dart'; import 'package:diplomaticquarterapp/pages/sub_categories_modalsheet.dart';
import 'base/base_view.dart'; import 'base/base_view.dart';
@ -1117,12 +1119,28 @@ class _ParentCategorisePageState extends State<ParentCategorisePage> {
padding: padding:
const EdgeInsets const EdgeInsets
.only( .only(
top: 4, top: 1,
bottom: 4), bottom: 1),
child: Texts( child: Row(
"SAR ${model.parentProducts[index].price}", mainAxisAlignment: MainAxisAlignment.spaceAround,
bold: true, children: [
fontSize: 14, Texts(
"SAR ${model.parentProducts[index].price}",
bold: true,
fontSize: 14,
),
Container(
child: IconButton(
icon: Icon(FontAwesomeIcons.shoppingCart, size: 15),
onPressed: () async {
Navigator.push(
context,
FadePage(page: CartOrderPage()),
);
},
),
),
],
), ),
), ),
Row( Row(

@ -42,6 +42,7 @@ class _SubCategoriseModalsheetState extends State<SubCategoriseModalsheet> {
appBarTitle: TranslationBase.of(context).categorise, appBarTitle: TranslationBase.of(context).categorise,
isBottomBar: false, isBottomBar: false,
isShowAppBar: true, isShowAppBar: true,
isPharmacy: true,
backgroundColor: Colors.white, backgroundColor: Colors.white,
isShowDecPage: false, isShowDecPage: false,
baseViewModel: model, baseViewModel: model,

Loading…
Cancel
Save