|
|
|
|
@ -1,5 +1,7 @@
|
|
|
|
|
import 'package:diplomaticquarterapp/core/viewModels/project_view_model.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/pages/parent_categorise_page.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/pages/pharmacies/screens/cart-order-page.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/pages/pharmacies/screens/pharmacy_module_page.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/pages/pharmacy_categorise.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/pages/search_products_page.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/uitl/translations_delegate_base.dart';
|
|
|
|
|
@ -95,51 +97,49 @@ class _LandingPagePharmacyState extends State<LandingPagePharmacy> {
|
|
|
|
|
],
|
|
|
|
|
centerTitle: true,
|
|
|
|
|
)
|
|
|
|
|
: 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,
|
|
|
|
|
),
|
|
|
|
|
: currentTab == 4
|
|
|
|
|
? 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(),
|
|
|
|
|
controller: pageController,
|
|
|
|
|
children: [
|
|
|
|
|
Container(
|
|
|
|
|
child: Text('text'),
|
|
|
|
|
),
|
|
|
|
|
PharmacyPage(),
|
|
|
|
|
PharmacyCategorisePage(),
|
|
|
|
|
OffersCategorisePage(),
|
|
|
|
|
Container(
|
|
|
|
|
child: Text('text'),
|
|
|
|
|
),
|
|
|
|
|
Container(
|
|
|
|
|
child: Center(child: Text('This Is Cart Page')),
|
|
|
|
|
),
|
|
|
|
|
CartOrderPage(),
|
|
|
|
|
], // Please do not remove the BookingOptions from this array
|
|
|
|
|
),
|
|
|
|
|
bottomNavigationBar: BottomNavPharmacyBar(
|
|
|
|
|
|