|
|
|
@ -1,21 +1,18 @@
|
|
|
|
|
import 'package:diplomaticquarterapp/config/shared_pref_kay.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/models/Authentication/authenticated_user.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/pages/ContactUs/LiveChat/livechat_page.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/pages/ContactUs/findus/findus_page.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/pages/DrawerPages/family/my-family.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/pages/medical/prescriptions/prescriptions_home_page.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/pages/pharmacies/screens/lakum-main-page.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/pages/pharmacies/wishlist.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/pages/pharmacy/order/Order.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/pages/pharmacy/pharmacyAddresses/PharmacyAddresses.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/widgets/avatar/large_avatar.dart';
|
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
import 'package:flutter_svg/flutter_svg.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/uitl/app_shared_preferences.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/uitl/translations_delegate_base.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/core/viewModels/pharmacyModule/order_model_view_model.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/pages/base/base_view.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/widgets/others/app_scaffold_widget.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/config/config.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/core/model/pharmacies/order_model.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/uitl/app_shared_preferences.dart';
|
|
|
|
|
|
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
import 'package:flutter_svg/flutter_svg.dart';
|
|
|
|
|
|
|
|
|
|
class PharmacyProfilePage extends StatefulWidget {
|
|
|
|
|
@override
|
|
|
|
@ -24,416 +21,501 @@ class PharmacyProfilePage extends StatefulWidget {
|
|
|
|
|
|
|
|
|
|
class _ProfilePageState extends State<PharmacyProfilePage> {
|
|
|
|
|
AppSharedPreferences sharedPref = AppSharedPreferences();
|
|
|
|
|
String customerId="";
|
|
|
|
|
String page_id="";
|
|
|
|
|
|
|
|
|
|
AuthenticatedUser user;
|
|
|
|
|
bool isLogin = false;
|
|
|
|
|
String firstName;
|
|
|
|
|
String customerId;
|
|
|
|
|
_ProfilePageState({this.customerId});
|
|
|
|
|
|
|
|
|
|
getCustomer() async {
|
|
|
|
|
String custID;
|
|
|
|
|
custID = await sharedPref.getString(PHARMACY_CUSTOMER_ID);
|
|
|
|
|
|
|
|
|
|
setState(() {
|
|
|
|
|
customerId = custID;
|
|
|
|
|
});
|
|
|
|
|
print("customer Id is"+ customerId);
|
|
|
|
|
return customerId;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
getUser() async {
|
|
|
|
|
var userData = await sharedPref.getObject(USER_PROFILE);
|
|
|
|
|
if (userData != null) user = AuthenticatedUser.fromJson(userData);
|
|
|
|
|
setState(() {
|
|
|
|
|
firstName = user.firstName.toString();
|
|
|
|
|
print("this is user" + user.firstName.toString());
|
|
|
|
|
});
|
|
|
|
|
// this.isLogin = user != null;
|
|
|
|
|
}
|
|
|
|
|
void initState() {
|
|
|
|
|
getCustomer();
|
|
|
|
|
super.initState();
|
|
|
|
|
getUser();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
return BaseView<OrderModelViewModel>(
|
|
|
|
|
onModelReady: (model) => model.getOrder(customerId, page_id),
|
|
|
|
|
builder: (_,model, wi )=> AppScaffold(
|
|
|
|
|
appBarTitle: TranslationBase.of(context).myAccount,
|
|
|
|
|
isShowAppBar: true,
|
|
|
|
|
isPharmacy:true ,
|
|
|
|
|
body: Container(
|
|
|
|
|
child:SingleChildScrollView(
|
|
|
|
|
child: Column(
|
|
|
|
|
children:<Widget>[
|
|
|
|
|
Container(
|
|
|
|
|
child:Row(
|
|
|
|
|
children:<Widget> [
|
|
|
|
|
Container(
|
|
|
|
|
padding:EdgeInsets.only(top:20.0, left:10.0, right:10.0, bottom:10.0,),
|
|
|
|
|
child: LargeAvatar(name: "profile", url:'' ,),
|
|
|
|
|
),
|
|
|
|
|
Container(
|
|
|
|
|
child: Column(
|
|
|
|
|
return AppScaffold(
|
|
|
|
|
appBarTitle: TranslationBase.of(context).myAccount,
|
|
|
|
|
isShowAppBar: true,
|
|
|
|
|
isPharmacy: true,
|
|
|
|
|
body: Container(
|
|
|
|
|
child: SingleChildScrollView(
|
|
|
|
|
child: Column(
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
Container(
|
|
|
|
|
child: Row(
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
// Container(
|
|
|
|
|
// padding:EdgeInsets.only(top:20.0, left:10.0, right:10.0, bottom:10.0,),
|
|
|
|
|
// child: LargeAvatar(
|
|
|
|
|
// name: "",
|
|
|
|
|
// url: "" ,),
|
|
|
|
|
// ),
|
|
|
|
|
Row(
|
|
|
|
|
children: [
|
|
|
|
|
Column(
|
|
|
|
|
children: [
|
|
|
|
|
Container(
|
|
|
|
|
padding:EdgeInsets.only(top:10.0, left:10.0, right:10.0, bottom:15.0,),
|
|
|
|
|
child: SvgPicture.asset(
|
|
|
|
|
'assets/images/pharmacy/user.svg',
|
|
|
|
|
width: 60,
|
|
|
|
|
height: 60,
|
|
|
|
|
),
|
|
|
|
|
),]
|
|
|
|
|
),
|
|
|
|
|
Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
|
children: [
|
|
|
|
|
Text(
|
|
|
|
|
TranslationBase.of(context).welcome,
|
|
|
|
|
style: TextStyle(fontSize: 14.0,
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontSize: 14.0,
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
color:Colors.grey
|
|
|
|
|
),
|
|
|
|
|
color: Colors.grey),
|
|
|
|
|
),
|
|
|
|
|
Text("Name",
|
|
|
|
|
// model.order[0].customer.firstName.toString(),
|
|
|
|
|
Text(
|
|
|
|
|
user.firstName.toString()+ " " + user.lastName.toString(),
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontSize: 16.0,
|
|
|
|
|
fontWeight: FontWeight.bold
|
|
|
|
|
),
|
|
|
|
|
fontSize: 14.0, fontWeight: FontWeight.bold),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Divider(
|
|
|
|
|
color: Colors.grey[350],
|
|
|
|
|
height: 20,
|
|
|
|
|
thickness: 5,
|
|
|
|
|
indent: 0,
|
|
|
|
|
endIndent: 0,
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 15,
|
|
|
|
|
],
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
Container(
|
|
|
|
|
child:Row(
|
|
|
|
|
children:<Widget> [
|
|
|
|
|
Expanded(
|
|
|
|
|
child: InkWell(
|
|
|
|
|
onTap: () {
|
|
|
|
|
Navigator.push(context,
|
|
|
|
|
MaterialPageRoute(builder: (context) => OrderPage()));
|
|
|
|
|
},
|
|
|
|
|
child: Column(
|
|
|
|
|
children:<Widget> [
|
|
|
|
|
SvgPicture.asset(
|
|
|
|
|
'assets/images/pharmacy/orders_icon.svg',
|
|
|
|
|
width: 50,
|
|
|
|
|
height: 50,),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 5,
|
|
|
|
|
),
|
|
|
|
|
Text(
|
|
|
|
|
TranslationBase.of(context).orders,
|
|
|
|
|
style: TextStyle(fontSize: 13.0,
|
|
|
|
|
fontWeight: FontWeight.bold,),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Divider(
|
|
|
|
|
color: Colors.grey[350],
|
|
|
|
|
height: 20,
|
|
|
|
|
thickness: 5,
|
|
|
|
|
indent: 0,
|
|
|
|
|
endIndent: 0,
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 15,
|
|
|
|
|
),
|
|
|
|
|
Container(
|
|
|
|
|
child: Row(
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
Expanded(
|
|
|
|
|
child: InkWell(
|
|
|
|
|
onTap: () {
|
|
|
|
|
Navigator.push(
|
|
|
|
|
context,
|
|
|
|
|
MaterialPageRoute(
|
|
|
|
|
builder: (context) => OrderPage(customerID: customerId)));
|
|
|
|
|
},
|
|
|
|
|
child: Column(
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
// Image(image: AssetImage('assets/images/pharmacy/orders_icon.svg')),
|
|
|
|
|
SvgPicture.asset(
|
|
|
|
|
'assets/images/pharmacy/orders_icon.svg',
|
|
|
|
|
width: 50,
|
|
|
|
|
height: 50,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Expanded(
|
|
|
|
|
child: InkWell(
|
|
|
|
|
child: Column(
|
|
|
|
|
children:<Widget> [
|
|
|
|
|
SvgPicture.asset(
|
|
|
|
|
'assets/images/pharmacy/lakum_icon.svg',
|
|
|
|
|
width: 50,
|
|
|
|
|
height: 50,),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 5,
|
|
|
|
|
),
|
|
|
|
|
Text(
|
|
|
|
|
TranslationBase.of(context).lakum,
|
|
|
|
|
style: TextStyle(fontSize: 13.0,
|
|
|
|
|
fontWeight: FontWeight.bold
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Expanded(
|
|
|
|
|
child: InkWell(
|
|
|
|
|
onTap: () {
|
|
|
|
|
Navigator.push(context,
|
|
|
|
|
MaterialPageRoute(builder: (context) => WishlistPage()));
|
|
|
|
|
},
|
|
|
|
|
child: Column(
|
|
|
|
|
children:<Widget> [
|
|
|
|
|
SvgPicture.asset(
|
|
|
|
|
'assets/images/pharmacy/wishlist_icon.svg',
|
|
|
|
|
width: 50,
|
|
|
|
|
height: 50,),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 5,
|
|
|
|
|
),
|
|
|
|
|
Text(
|
|
|
|
|
TranslationBase.of(context).wishlist,
|
|
|
|
|
style: TextStyle(fontSize: 13.0,
|
|
|
|
|
fontWeight: FontWeight.bold,),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 5,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Expanded(
|
|
|
|
|
child: InkWell(
|
|
|
|
|
child: Column(
|
|
|
|
|
children:<Widget> [
|
|
|
|
|
SvgPicture.asset(
|
|
|
|
|
'assets/images/pharmacy/review_icon.svg',
|
|
|
|
|
width: 50,
|
|
|
|
|
height: 50,),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 5,
|
|
|
|
|
),
|
|
|
|
|
Text(
|
|
|
|
|
TranslationBase.of(context).reviews,
|
|
|
|
|
style: TextStyle(fontSize: 13.0,
|
|
|
|
|
fontWeight: FontWeight.bold,),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
Text(
|
|
|
|
|
TranslationBase.of(context).orders,
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontSize: 13.0,
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
)
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 15,
|
|
|
|
|
),
|
|
|
|
|
Divider(
|
|
|
|
|
color: Colors.grey[350],
|
|
|
|
|
height: 20,
|
|
|
|
|
thickness: 5,
|
|
|
|
|
indent: 0,
|
|
|
|
|
endIndent: 0,
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 10,
|
|
|
|
|
),
|
|
|
|
|
Container(
|
|
|
|
|
padding: EdgeInsets.only(left: 10.0),
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children:<Widget> [
|
|
|
|
|
Text(
|
|
|
|
|
TranslationBase.of(context).myAccount,
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontSize: 16.0,
|
|
|
|
|
fontWeight: FontWeight.bold
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 10,
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
Divider(
|
|
|
|
|
color: Colors.grey,
|
|
|
|
|
height: 20,
|
|
|
|
|
),
|
|
|
|
|
InkWell(
|
|
|
|
|
onTap: () {
|
|
|
|
|
Navigator.push(context,
|
|
|
|
|
MaterialPageRoute(builder: (context) => HomePrescriptionsPage()));
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Expanded(
|
|
|
|
|
child: InkWell(
|
|
|
|
|
onTap: () {
|
|
|
|
|
Navigator.push(
|
|
|
|
|
context,
|
|
|
|
|
MaterialPageRoute(
|
|
|
|
|
builder: (context) => LakumMainPage()));
|
|
|
|
|
},
|
|
|
|
|
child: Row(
|
|
|
|
|
children:<Widget> [
|
|
|
|
|
SvgPicture.asset(
|
|
|
|
|
'assets/images/pharmacy/my_prescription_icon.svg',
|
|
|
|
|
width: 28,
|
|
|
|
|
height: 28,),
|
|
|
|
|
SizedBox(
|
|
|
|
|
width: 15,
|
|
|
|
|
),
|
|
|
|
|
Text(TranslationBase.of(context).myPrescription,
|
|
|
|
|
style: TextStyle(fontSize: 13.0,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 5,
|
|
|
|
|
),
|
|
|
|
|
Divider(
|
|
|
|
|
color: Colors.grey,
|
|
|
|
|
height: 20,
|
|
|
|
|
child: Column(
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
SvgPicture.asset(
|
|
|
|
|
'assets/images/pharmacy/lakum_icon.svg',
|
|
|
|
|
width: 50,
|
|
|
|
|
height: 50,
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 5,
|
|
|
|
|
),
|
|
|
|
|
Text(
|
|
|
|
|
TranslationBase.of(context).lakum,
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontSize: 13.0, fontWeight: FontWeight.bold),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
InkWell(
|
|
|
|
|
onTap: () {
|
|
|
|
|
Navigator.push(context,
|
|
|
|
|
MaterialPageRoute(builder: (context) => MyFamily()));
|
|
|
|
|
},
|
|
|
|
|
child: Row(
|
|
|
|
|
children:<Widget> [
|
|
|
|
|
SvgPicture.asset(
|
|
|
|
|
'assets/images/pharmacy/compare.png',
|
|
|
|
|
width: 28,
|
|
|
|
|
height: 28,),
|
|
|
|
|
SizedBox(
|
|
|
|
|
width: 15,
|
|
|
|
|
),
|
|
|
|
|
Text(TranslationBase.of(context).compare,
|
|
|
|
|
style: TextStyle(fontSize: 13.0,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Expanded(
|
|
|
|
|
child: InkWell(
|
|
|
|
|
onTap: () {
|
|
|
|
|
Navigator.push(
|
|
|
|
|
context,
|
|
|
|
|
MaterialPageRoute(
|
|
|
|
|
builder: (context) => WishlistPage()));
|
|
|
|
|
},
|
|
|
|
|
child: Column(
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
SvgPicture.asset(
|
|
|
|
|
'assets/images/pharmacy/wishlist_icon.svg',
|
|
|
|
|
width: 50,
|
|
|
|
|
height: 50,
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 5,
|
|
|
|
|
),
|
|
|
|
|
Text(
|
|
|
|
|
TranslationBase.of(context).wishlist,
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontSize: 13.0,
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 5,
|
|
|
|
|
),
|
|
|
|
|
Divider(
|
|
|
|
|
color: Colors.grey,
|
|
|
|
|
height: 20,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
InkWell(
|
|
|
|
|
onTap: () {
|
|
|
|
|
Navigator.push(context,
|
|
|
|
|
MaterialPageRoute(builder: (context) => HomePrescriptionsPage()));
|
|
|
|
|
},
|
|
|
|
|
child: Row(
|
|
|
|
|
children:<Widget> [
|
|
|
|
|
SvgPicture.asset(
|
|
|
|
|
'assets/images/pharmacy/medication_refill_icon.svg',
|
|
|
|
|
width: 30,
|
|
|
|
|
height: 30,),
|
|
|
|
|
SizedBox(
|
|
|
|
|
width: 20,
|
|
|
|
|
),
|
|
|
|
|
Text(TranslationBase.of(context).medicationsRefill,
|
|
|
|
|
style: TextStyle(fontSize: 13.0,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Expanded(
|
|
|
|
|
child: InkWell(
|
|
|
|
|
child: Column(
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
SvgPicture.asset(
|
|
|
|
|
'assets/images/pharmacy/review_icon.svg',
|
|
|
|
|
width: 50,
|
|
|
|
|
height: 50,
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 5,
|
|
|
|
|
),
|
|
|
|
|
Text(
|
|
|
|
|
TranslationBase.of(context).reviews,
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontSize: 13.0,
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 5,
|
|
|
|
|
),
|
|
|
|
|
Divider(
|
|
|
|
|
color: Colors.grey,
|
|
|
|
|
height: 20,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
InkWell(
|
|
|
|
|
onTap: () {
|
|
|
|
|
Navigator.push(context,
|
|
|
|
|
MaterialPageRoute(builder: (context) => MyFamily()));
|
|
|
|
|
},
|
|
|
|
|
child: Row(
|
|
|
|
|
children:<Widget> [
|
|
|
|
|
SvgPicture.asset(
|
|
|
|
|
'assets/images/pharmacy/my_family_icon.svg',
|
|
|
|
|
width: 20,
|
|
|
|
|
height: 20,),
|
|
|
|
|
SizedBox(
|
|
|
|
|
width: 20,
|
|
|
|
|
),
|
|
|
|
|
Text(TranslationBase.of(context).family,
|
|
|
|
|
style: TextStyle(fontSize: 13.0,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
)),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 15,
|
|
|
|
|
),
|
|
|
|
|
Divider(
|
|
|
|
|
color: Colors.grey[350],
|
|
|
|
|
height: 20,
|
|
|
|
|
thickness: 5,
|
|
|
|
|
indent: 0,
|
|
|
|
|
endIndent: 0,
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 10,
|
|
|
|
|
),
|
|
|
|
|
Container(
|
|
|
|
|
padding: EdgeInsets.only(left: 10.0),
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
Text(
|
|
|
|
|
TranslationBase.of(context).myAccount,
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontSize: 16.0, fontWeight: FontWeight.bold),
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 10,
|
|
|
|
|
),
|
|
|
|
|
Divider(
|
|
|
|
|
color: Colors.grey,
|
|
|
|
|
height: 20,
|
|
|
|
|
),
|
|
|
|
|
InkWell(
|
|
|
|
|
onTap: () {
|
|
|
|
|
Navigator.push(
|
|
|
|
|
context,
|
|
|
|
|
MaterialPageRoute(
|
|
|
|
|
builder: (context) => HomePrescriptionsPage()));
|
|
|
|
|
},
|
|
|
|
|
child: Row(
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
SvgPicture.asset(
|
|
|
|
|
'assets/images/pharmacy/my_prescription_icon.svg',
|
|
|
|
|
width: 28,
|
|
|
|
|
height: 28,
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
width: 15,
|
|
|
|
|
),
|
|
|
|
|
Text(
|
|
|
|
|
TranslationBase.of(context).myPrescription,
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontSize: 13.0,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 5,
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 5,
|
|
|
|
|
),
|
|
|
|
|
Divider(
|
|
|
|
|
color: Colors.grey,
|
|
|
|
|
height: 20,
|
|
|
|
|
),
|
|
|
|
|
InkWell(
|
|
|
|
|
onTap: () {
|
|
|
|
|
Navigator.push(
|
|
|
|
|
context,
|
|
|
|
|
MaterialPageRoute(
|
|
|
|
|
builder: (context) => MyFamily()));
|
|
|
|
|
},
|
|
|
|
|
child: Row(
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
Image.asset('assets/images/pharmacy/compare.png',
|
|
|
|
|
width: 35, height: 35),
|
|
|
|
|
SizedBox(
|
|
|
|
|
width: 15,
|
|
|
|
|
),
|
|
|
|
|
Text(
|
|
|
|
|
TranslationBase.of(context).compare,
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontSize: 13.0,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
Divider(
|
|
|
|
|
color: Colors.grey,
|
|
|
|
|
height: 20,
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 5,
|
|
|
|
|
),
|
|
|
|
|
Divider(
|
|
|
|
|
color: Colors.grey,
|
|
|
|
|
height: 20,
|
|
|
|
|
),
|
|
|
|
|
InkWell(
|
|
|
|
|
onTap: () {
|
|
|
|
|
Navigator.push(
|
|
|
|
|
context,
|
|
|
|
|
MaterialPageRoute(
|
|
|
|
|
builder: (context) => HomePrescriptionsPage()));
|
|
|
|
|
},
|
|
|
|
|
child: Row(
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
SvgPicture.asset(
|
|
|
|
|
'assets/images/pharmacy/medication_refill_icon.svg',
|
|
|
|
|
width: 30,
|
|
|
|
|
height: 30,
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
width: 20,
|
|
|
|
|
),
|
|
|
|
|
Text(
|
|
|
|
|
TranslationBase.of(context).medicationsRefill,
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontSize: 13.0,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
InkWell(
|
|
|
|
|
onTap: () {
|
|
|
|
|
Navigator.push(context,
|
|
|
|
|
MaterialPageRoute(builder: (context) => PharmacyAddressesPage()));
|
|
|
|
|
},
|
|
|
|
|
child: Row(
|
|
|
|
|
children:<Widget> [
|
|
|
|
|
SvgPicture.asset(
|
|
|
|
|
'assets/images/pharmacy/shipping_addresses_icon.svg',
|
|
|
|
|
width: 30,
|
|
|
|
|
height: 30,),
|
|
|
|
|
SizedBox(
|
|
|
|
|
width: 20,
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 5,
|
|
|
|
|
),
|
|
|
|
|
Divider(
|
|
|
|
|
color: Colors.grey,
|
|
|
|
|
height: 20,
|
|
|
|
|
),
|
|
|
|
|
InkWell(
|
|
|
|
|
onTap: () {
|
|
|
|
|
Navigator.push(
|
|
|
|
|
context,
|
|
|
|
|
MaterialPageRoute(
|
|
|
|
|
builder: (context) => MyFamily()));
|
|
|
|
|
},
|
|
|
|
|
child: Row(
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
SvgPicture.asset(
|
|
|
|
|
'assets/images/pharmacy/my_family_icon.svg',
|
|
|
|
|
width: 20,
|
|
|
|
|
height: 20,
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
width: 20,
|
|
|
|
|
),
|
|
|
|
|
Text(
|
|
|
|
|
TranslationBase.of(context).family,
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontSize: 13.0,
|
|
|
|
|
),
|
|
|
|
|
Text(TranslationBase.of(context).shippingAddresses,
|
|
|
|
|
style: TextStyle(fontSize: 13.0,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 5,
|
|
|
|
|
),
|
|
|
|
|
Divider(
|
|
|
|
|
color: Colors.grey,
|
|
|
|
|
height: 20,
|
|
|
|
|
),
|
|
|
|
|
InkWell(
|
|
|
|
|
onTap: () {
|
|
|
|
|
Navigator.push(
|
|
|
|
|
context,
|
|
|
|
|
MaterialPageRoute(
|
|
|
|
|
builder: (context) => PharmacyAddressesPage()));
|
|
|
|
|
},
|
|
|
|
|
child: Row(
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
SvgPicture.asset(
|
|
|
|
|
'assets/images/pharmacy/shipping_addresses_icon.svg',
|
|
|
|
|
width: 30,
|
|
|
|
|
height: 30,
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
width: 20,
|
|
|
|
|
),
|
|
|
|
|
Text(
|
|
|
|
|
TranslationBase.of(context).shippingAddresses,
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontSize: 13.0,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 10,
|
|
|
|
|
),
|
|
|
|
|
Divider(
|
|
|
|
|
color: Colors.grey[350],
|
|
|
|
|
height: 20,
|
|
|
|
|
thickness: 5,
|
|
|
|
|
indent: 0,
|
|
|
|
|
endIndent: 0,
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 10,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
Container(
|
|
|
|
|
padding: EdgeInsets.only(left: 10.0),
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children:<Widget> [
|
|
|
|
|
Text(
|
|
|
|
|
TranslationBase.of(context).reachUs,
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontSize: 16.0,
|
|
|
|
|
fontWeight: FontWeight.bold
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 5,
|
|
|
|
|
),
|
|
|
|
|
Divider(
|
|
|
|
|
color: Colors.grey,
|
|
|
|
|
height: 20,
|
|
|
|
|
),
|
|
|
|
|
InkWell(
|
|
|
|
|
onTap: () {
|
|
|
|
|
Navigator.push(context,
|
|
|
|
|
MaterialPageRoute(builder: (context) => LiveChatPage()));
|
|
|
|
|
},
|
|
|
|
|
child: Row(
|
|
|
|
|
children:<Widget> [
|
|
|
|
|
SvgPicture.asset(
|
|
|
|
|
'assets/images/pharmacy/contact_us_icon.svg',
|
|
|
|
|
width: 20,
|
|
|
|
|
height: 20,),
|
|
|
|
|
SizedBox(
|
|
|
|
|
width: 20,
|
|
|
|
|
),
|
|
|
|
|
Text(
|
|
|
|
|
TranslationBase.of(context).contactUs,
|
|
|
|
|
style: TextStyle(fontSize: 13.0),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 5,
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 10,
|
|
|
|
|
),
|
|
|
|
|
Divider(
|
|
|
|
|
color: Colors.grey[350],
|
|
|
|
|
height: 20,
|
|
|
|
|
thickness: 5,
|
|
|
|
|
indent: 0,
|
|
|
|
|
endIndent: 0,
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 10,
|
|
|
|
|
),
|
|
|
|
|
Container(
|
|
|
|
|
padding: EdgeInsets.only(left: 10.0),
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
Text(
|
|
|
|
|
TranslationBase.of(context).reachUs,
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontSize: 16.0, fontWeight: FontWeight.bold),
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 5,
|
|
|
|
|
),
|
|
|
|
|
Divider(
|
|
|
|
|
color: Colors.grey,
|
|
|
|
|
height: 20,
|
|
|
|
|
),
|
|
|
|
|
InkWell(
|
|
|
|
|
onTap: () {
|
|
|
|
|
Navigator.push(
|
|
|
|
|
context,
|
|
|
|
|
MaterialPageRoute(
|
|
|
|
|
builder: (context) => LiveChatPage()));
|
|
|
|
|
},
|
|
|
|
|
child: Row(
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
SvgPicture.asset(
|
|
|
|
|
'assets/images/pharmacy/contact_us_icon.svg',
|
|
|
|
|
width: 20,
|
|
|
|
|
height: 20,
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
width: 20,
|
|
|
|
|
),
|
|
|
|
|
Text(
|
|
|
|
|
TranslationBase.of(context).contactUs,
|
|
|
|
|
style: TextStyle(fontSize: 13.0),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
Divider(
|
|
|
|
|
color: Colors.grey,
|
|
|
|
|
height: 20,
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 5,
|
|
|
|
|
),
|
|
|
|
|
Divider(
|
|
|
|
|
color: Colors.grey,
|
|
|
|
|
height: 20,
|
|
|
|
|
),
|
|
|
|
|
InkWell(
|
|
|
|
|
onTap: () {
|
|
|
|
|
Navigator.push(
|
|
|
|
|
context,
|
|
|
|
|
MaterialPageRoute(
|
|
|
|
|
builder: (context) => FindUsPage()));
|
|
|
|
|
},
|
|
|
|
|
child: Row(
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
SvgPicture.asset(
|
|
|
|
|
'assets/images/pharmacy/our_locations_icon.svg',
|
|
|
|
|
width: 30,
|
|
|
|
|
height: 30,
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
width: 20,
|
|
|
|
|
),
|
|
|
|
|
Text(
|
|
|
|
|
TranslationBase.of(context).ourLocations,
|
|
|
|
|
style: TextStyle(fontSize: 13.0),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
InkWell(
|
|
|
|
|
onTap: () {
|
|
|
|
|
Navigator.push(context,
|
|
|
|
|
MaterialPageRoute(builder: (context) => FindUsPage()));
|
|
|
|
|
},
|
|
|
|
|
child: Row(
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
SvgPicture.asset(
|
|
|
|
|
'assets/images/pharmacy/our_locations_icon.svg',
|
|
|
|
|
width: 30,
|
|
|
|
|
height: 30,),
|
|
|
|
|
SizedBox(
|
|
|
|
|
width: 20,
|
|
|
|
|
),
|
|
|
|
|
Text(
|
|
|
|
|
TranslationBase.of(context).ourLocations,
|
|
|
|
|
style: TextStyle(fontSize: 13.0),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
}}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
// getUser() async {
|
|
|
|
|
// var userData = await sharedPref.getObject(USER_PROFILE);
|
|
|
|
|
// if (userData != null) user = AuthenticatedUser.fromJson(userData);
|
|
|
|
|
// }
|
|
|
|
|
}
|
|
|
|
|