|
|
|
@ -14,6 +14,7 @@ import 'package:diplomaticquarterapp/pages/AlHabibMedicalService/h2o/h20_setting
|
|
|
|
import 'package:diplomaticquarterapp/pages/base/base_view.dart';
|
|
|
|
import 'package:diplomaticquarterapp/pages/base/base_view.dart';
|
|
|
|
import 'package:diplomaticquarterapp/pages/packages_offers/ClinicOfferAndPackagesPage.dart';
|
|
|
|
import 'package:diplomaticquarterapp/pages/packages_offers/ClinicOfferAndPackagesPage.dart';
|
|
|
|
import 'package:diplomaticquarterapp/pages/packages_offers/OfferAndPackagesCartPage.dart';
|
|
|
|
import 'package:diplomaticquarterapp/pages/packages_offers/OfferAndPackagesCartPage.dart';
|
|
|
|
|
|
|
|
import 'package:diplomaticquarterapp/pages/packages_offers/packages_offers_tab_pager.dart';
|
|
|
|
import 'package:diplomaticquarterapp/pages/packages_offers/packages_orders_history.dart';
|
|
|
|
import 'package:diplomaticquarterapp/pages/packages_offers/packages_orders_history.dart';
|
|
|
|
import 'package:diplomaticquarterapp/routes.dart';
|
|
|
|
import 'package:diplomaticquarterapp/routes.dart';
|
|
|
|
import 'package:diplomaticquarterapp/services/authentication/auth_provider.dart' as auth;
|
|
|
|
import 'package:diplomaticquarterapp/services/authentication/auth_provider.dart' as auth;
|
|
|
|
@ -102,7 +103,8 @@ class _PackagesHomePageState extends State<PackagesHomePage> {
|
|
|
|
padding: EdgeInsets.only(top: 21, bottom: 21),
|
|
|
|
padding: EdgeInsets.only(top: 21, bottom: 21),
|
|
|
|
physics: BouncingScrollPhysics(),
|
|
|
|
physics: BouncingScrollPhysics(),
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
inputWidget(TranslationBase.of(context).search, "", _searchTextController, isInputTypeNum: false),
|
|
|
|
if(OFFERS_VIEW_ONLY)
|
|
|
|
|
|
|
|
inputWidget(TranslationBase.of(context).search, "", _searchTextController, isInputTypeNum: false),
|
|
|
|
SizedBox(height: 12),
|
|
|
|
SizedBox(height: 12),
|
|
|
|
Padding(
|
|
|
|
Padding(
|
|
|
|
padding: const EdgeInsets.only(left: 21, right: 21),
|
|
|
|
padding: const EdgeInsets.only(left: 21, right: 21),
|
|
|
|
@ -125,7 +127,7 @@ class _PackagesHomePageState extends State<PackagesHomePage> {
|
|
|
|
itemBuilder: (BuildContext context, int index) {
|
|
|
|
itemBuilder: (BuildContext context, int index) {
|
|
|
|
return PackagesItemCard(
|
|
|
|
return PackagesItemCard(
|
|
|
|
itemModel: viewModel.bestSellerList[index],
|
|
|
|
itemModel: viewModel.bestSellerList[index],
|
|
|
|
onCartClick: onProductCartClick,
|
|
|
|
onCartClick: OFFERS_VIEW_ONLY ? onProductCartClick : null,
|
|
|
|
);
|
|
|
|
);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
),
|
|
|
|
),
|
|
|
|
@ -146,7 +148,7 @@ class _PackagesHomePageState extends State<PackagesHomePage> {
|
|
|
|
itemBuilder: (BuildContext context, int index) {
|
|
|
|
itemBuilder: (BuildContext context, int index) {
|
|
|
|
return PackagesItemCard(
|
|
|
|
return PackagesItemCard(
|
|
|
|
itemModel: viewModel.latestOffersList[index],
|
|
|
|
itemModel: viewModel.latestOffersList[index],
|
|
|
|
onCartClick: onProductCartClick,
|
|
|
|
onCartClick: OFFERS_VIEW_ONLY ? onProductCartClick : null,
|
|
|
|
);
|
|
|
|
);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
),
|
|
|
|
),
|
|
|
|
@ -155,13 +157,14 @@ class _PackagesHomePageState extends State<PackagesHomePage> {
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
|
|
DefaultButton(
|
|
|
|
if(OFFERS_VIEW_ONLY)
|
|
|
|
TranslationBase.of(context).myCart,
|
|
|
|
DefaultButton(
|
|
|
|
onCartClick,
|
|
|
|
TranslationBase.of(context).myCart,
|
|
|
|
svgIcon: "assets/images/new/cart.svg",
|
|
|
|
onCartClick,
|
|
|
|
isTextExpanded: false,
|
|
|
|
svgIcon: "assets/images/new/cart.svg",
|
|
|
|
count: viewModel?.service?.customer?.shoppingCartItems?.length ?? 0,
|
|
|
|
isTextExpanded: false,
|
|
|
|
).insideContainer
|
|
|
|
count: viewModel?.service?.customer?.shoppingCartItems?.length ?? 0,
|
|
|
|
|
|
|
|
).insideContainer
|
|
|
|
],
|
|
|
|
],
|
|
|
|
);
|
|
|
|
);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|