|
|
|
|
@ -110,35 +110,6 @@ class _LandingPagePharmacyState extends State<LandingPagePharmacy> {
|
|
|
|
|
centerTitle: true,
|
|
|
|
|
)
|
|
|
|
|
: null,
|
|
|
|
|
// : AppBar(
|
|
|
|
|
// backgroundColor: Color(0xff5AB145),
|
|
|
|
|
// elevation: 0,
|
|
|
|
|
// textTheme: TextTheme(
|
|
|
|
|
// headline6: TextStyle(
|
|
|
|
|
// color: Colors.white, fontWeight: FontWeight.bold),
|
|
|
|
|
// ),
|
|
|
|
|
// title: Text(getText(currentTab).toUpperCase()),
|
|
|
|
|
// leading: Builder(
|
|
|
|
|
// builder: (BuildContext context) {
|
|
|
|
|
// return IconButton(
|
|
|
|
|
// icon: Icon(Icons.arrow_back),
|
|
|
|
|
// color: Colors.white,
|
|
|
|
|
// onPressed: () => Scaffold.of(context).openDrawer(),
|
|
|
|
|
// );
|
|
|
|
|
// },
|
|
|
|
|
// ),
|
|
|
|
|
// actions: [
|
|
|
|
|
// // IconButton(
|
|
|
|
|
// // iconSize: 70,
|
|
|
|
|
// // icon: SvgPicture.asset('assets/images/svg/robort_svg.svg',
|
|
|
|
|
// // height: 100, width: 100, fit: BoxFit.cover),
|
|
|
|
|
// // onPressed: () {
|
|
|
|
|
// // triggerRobot();
|
|
|
|
|
// // } //do something,
|
|
|
|
|
// // )
|
|
|
|
|
// ],
|
|
|
|
|
// centerTitle: true,
|
|
|
|
|
// ),
|
|
|
|
|
extendBody: false,
|
|
|
|
|
body: PageView(
|
|
|
|
|
physics: NeverScrollableScrollPhysics(),
|
|
|
|
|
@ -146,14 +117,9 @@ class _LandingPagePharmacyState extends State<LandingPagePharmacy> {
|
|
|
|
|
children: [
|
|
|
|
|
PharmacyPage(),
|
|
|
|
|
PharmacyCategorisePage(),
|
|
|
|
|
// OffersCategorisePage(),
|
|
|
|
|
WishlistPage(false),
|
|
|
|
|
PharmacyProfilePage(),
|
|
|
|
|
// Container(
|
|
|
|
|
// child: Text('text'),
|
|
|
|
|
// ),
|
|
|
|
|
CartOrderPage(),
|
|
|
|
|
], // Please do not remove the BookingOptions from this array
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
bottomNavigationBar: BottomNavPharmacyBar(
|
|
|
|
|
changeIndex: _changeCurrentTab,
|
|
|
|
|
@ -172,7 +138,7 @@ class _LandingPagePharmacyState extends State<LandingPagePharmacy> {
|
|
|
|
|
.getPharmacy("$GET_PHARMACY_PRODUCTs_BY_SKU$barcode",
|
|
|
|
|
onSuccess: (dynamic response, int statusCode) {
|
|
|
|
|
print(response);
|
|
|
|
|
product = PharmacyProduct.fromJson(response["products"][0]);
|
|
|
|
|
var product = PharmacyProduct.fromJson(response["products"][0]);
|
|
|
|
|
GifLoaderDialogUtils.hideDialog(context);
|
|
|
|
|
Navigator.push(context, FadePage(page: ProductDetailPage(product)));
|
|
|
|
|
}, onFailure: (String error, int statusCode) {
|
|
|
|
|
|