|
|
|
@ -88,8 +88,9 @@ class _HomePageState extends State<HomePage> {
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
),
|
|
|
|
|
Container(width: double.infinity, height: 125),
|
|
|
|
|
Container(width: double.infinity, height:projectViewModel.isArabic ? 120:110),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
Positioned(
|
|
|
|
@ -107,7 +108,7 @@ class _HomePageState extends State<HomePage> {
|
|
|
|
|
child: (!model.isLogin && projectViewModel.user == null)
|
|
|
|
|
? Container(
|
|
|
|
|
width: double.infinity,
|
|
|
|
|
height: 180,
|
|
|
|
|
height: 160,
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
color: Theme.of(context).primaryColor,
|
|
|
|
|
shape: BoxShape.rectangle,
|
|
|
|
@ -300,7 +301,7 @@ class _HomePageState extends State<HomePage> {
|
|
|
|
|
bold: true,
|
|
|
|
|
),
|
|
|
|
|
Texts(
|
|
|
|
|
"Height",
|
|
|
|
|
TranslationBase.of(context).height,
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
fontSize: 10,
|
|
|
|
|
),
|
|
|
|
@ -332,7 +333,7 @@ class _HomePageState extends State<HomePage> {
|
|
|
|
|
bold: true,
|
|
|
|
|
),
|
|
|
|
|
Texts(
|
|
|
|
|
"Weight",
|
|
|
|
|
TranslationBase.of(context).weight,
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
fontSize: 10,
|
|
|
|
|
)
|
|
|
|
@ -346,10 +347,8 @@ class _HomePageState extends State<HomePage> {
|
|
|
|
|
),
|
|
|
|
|
Expanded(
|
|
|
|
|
child: Row(
|
|
|
|
|
mainAxisAlignment:
|
|
|
|
|
MainAxisAlignment.start,
|
|
|
|
|
crossAxisAlignment:
|
|
|
|
|
CrossAxisAlignment.center,
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.start,
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
Image.asset(
|
|
|
|
|
'assets/images/blood-drop.png',
|
|
|
|
@ -363,7 +362,7 @@ class _HomePageState extends State<HomePage> {
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
),
|
|
|
|
|
Texts(
|
|
|
|
|
"Blood Type",
|
|
|
|
|
TranslationBase.of(context).bloodType,
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
fontSize: 10,
|
|
|
|
|
)
|
|
|
|
@ -402,35 +401,28 @@ class _HomePageState extends State<HomePage> {
|
|
|
|
|
padding: const EdgeInsets.all(15.0),
|
|
|
|
|
child: Column(
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 15,
|
|
|
|
|
),
|
|
|
|
|
SizedBox(height: 15,),
|
|
|
|
|
|
|
|
|
|
Container(
|
|
|
|
|
width: 60,
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
shape: BoxShape.rectangle,
|
|
|
|
|
borderRadius:
|
|
|
|
|
BorderRadius.circular(12)),
|
|
|
|
|
child: Center(
|
|
|
|
|
child: Image.asset(
|
|
|
|
|
'assets/images/vital_sign_icon.png',
|
|
|
|
|
borderRadius: BorderRadius.circular(12)
|
|
|
|
|
),
|
|
|
|
|
child: Center(child: Image.asset('assets/images/vital_sign_icon.png',
|
|
|
|
|
width: 80,
|
|
|
|
|
height: 50,
|
|
|
|
|
fit: BoxFit.contain,
|
|
|
|
|
)),
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 20,
|
|
|
|
|
fit: BoxFit.contain,)),
|
|
|
|
|
),
|
|
|
|
|
SizedBox(height: 20,),
|
|
|
|
|
Texts(
|
|
|
|
|
TranslationBase.of(context).vitalSigns,
|
|
|
|
|
TranslationBase.of(context)
|
|
|
|
|
.vitalSigns,
|
|
|
|
|
textAlign: TextAlign.center,
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
|
fontSize: projectViewModel.isArabic
|
|
|
|
|
? SizeConfig.textMultiplier * 1.5
|
|
|
|
|
: SizeConfig.textMultiplier * 1.7,
|
|
|
|
|
bold: true,
|
|
|
|
|
fontSize: projectViewModel.isArabic? SizeConfig.textMultiplier * 1.5 :SizeConfig.textMultiplier * 1.7,
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
@ -458,35 +450,26 @@ class _HomePageState extends State<HomePage> {
|
|
|
|
|
padding: const EdgeInsets.all(15.0),
|
|
|
|
|
child: Column(
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 15,
|
|
|
|
|
),
|
|
|
|
|
SizedBox(height: 15,),
|
|
|
|
|
Container(
|
|
|
|
|
width: 50,
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
shape: BoxShape.rectangle,
|
|
|
|
|
borderRadius:
|
|
|
|
|
BorderRadius.circular(12)),
|
|
|
|
|
child: Center(
|
|
|
|
|
child: Image.asset(
|
|
|
|
|
'assets/images/search_medicine_icon.png',
|
|
|
|
|
borderRadius: BorderRadius.circular(12)
|
|
|
|
|
),
|
|
|
|
|
child: Center(child: Image.asset('assets/images/search_medicine_icon.png',
|
|
|
|
|
width: 50,
|
|
|
|
|
height: 50,
|
|
|
|
|
fit: BoxFit.contain,
|
|
|
|
|
)),
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 20,
|
|
|
|
|
fit: BoxFit.contain,)),
|
|
|
|
|
),
|
|
|
|
|
SizedBox(height: 20,),
|
|
|
|
|
Texts(
|
|
|
|
|
TranslationBase.of(context).searchMedicine,
|
|
|
|
|
textAlign: TextAlign.center,
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
|
fontSize: projectViewModel.isArabic
|
|
|
|
|
? SizeConfig.textMultiplier * 1.5
|
|
|
|
|
: SizeConfig.textMultiplier * 1.7,
|
|
|
|
|
bold: true,
|
|
|
|
|
fontSize: projectViewModel.isArabic? SizeConfig.textMultiplier * 1.5 :SizeConfig.textMultiplier * 1.7,
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
@ -498,8 +481,7 @@ class _HomePageState extends State<HomePage> {
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Expanded(
|
|
|
|
|
child: DashboardItem(
|
|
|
|
|
opacity: 1.0,
|
|
|
|
|
child: DashboardItem(opacity: 1.0,
|
|
|
|
|
onTap: (){
|
|
|
|
|
Navigator.push(
|
|
|
|
|
context,
|
|
|
|
@ -513,35 +495,25 @@ class _HomePageState extends State<HomePage> {
|
|
|
|
|
padding: const EdgeInsets.all(15.0),
|
|
|
|
|
child: Column(
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 15,
|
|
|
|
|
),
|
|
|
|
|
SizedBox(height: 15,),
|
|
|
|
|
Container(
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
shape: BoxShape.rectangle,
|
|
|
|
|
borderRadius:
|
|
|
|
|
BorderRadius.circular(12)),
|
|
|
|
|
child: Center(
|
|
|
|
|
child: Image.asset(
|
|
|
|
|
'assets/images/online_payment_icon.png',
|
|
|
|
|
borderRadius: BorderRadius.circular(12)
|
|
|
|
|
),
|
|
|
|
|
child: Center(child: Image.asset('assets/images/online_payment_icon.png',
|
|
|
|
|
width: 80,
|
|
|
|
|
height: 50,
|
|
|
|
|
fit: BoxFit.contain,
|
|
|
|
|
)),
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 15,
|
|
|
|
|
fit: BoxFit.contain,)),
|
|
|
|
|
),
|
|
|
|
|
SizedBox(height: 15,),
|
|
|
|
|
Texts(
|
|
|
|
|
TranslationBase.of(context)
|
|
|
|
|
.onlinePaymentService,
|
|
|
|
|
TranslationBase.of(context).onlinePaymentService,
|
|
|
|
|
textAlign: TextAlign.center,
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
|
fontSize: projectViewModel.isArabic
|
|
|
|
|
? SizeConfig.textMultiplier * 1.5
|
|
|
|
|
: SizeConfig.textMultiplier * 1.7,
|
|
|
|
|
bold: true,
|
|
|
|
|
fontSize: projectViewModel.isArabic? SizeConfig.textMultiplier * 1.5 :SizeConfig.textMultiplier * 1.7,
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
@ -577,33 +549,34 @@ class _HomePageState extends State<HomePage> {
|
|
|
|
|
);
|
|
|
|
|
},
|
|
|
|
|
child: MedicalProfileItem(
|
|
|
|
|
title:
|
|
|
|
|
TranslationBase.of(context).myAppointments,
|
|
|
|
|
title: TranslationBase.of(context)
|
|
|
|
|
.myAppointments,
|
|
|
|
|
imagePath: 'my_appointment_icon.png',
|
|
|
|
|
subTitle: TranslationBase.of(context)
|
|
|
|
|
.myAppointmentsList,
|
|
|
|
|
subTitle: TranslationBase.of(context).myAppointmentsList,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Expanded(
|
|
|
|
|
flex: 1,
|
|
|
|
|
child: InkWell(
|
|
|
|
|
onTap: () => Navigator.push(
|
|
|
|
|
context, FadePage(page: LabsHomePage())),
|
|
|
|
|
onTap: () => Navigator.push(context,
|
|
|
|
|
FadePage(page: LabsHomePage())),
|
|
|
|
|
child: MedicalProfileItem(
|
|
|
|
|
title: TranslationBase.of(context).lab,
|
|
|
|
|
imagePath: 'lab_result_icon.png',
|
|
|
|
|
subTitle: TranslationBase.of(context).lab,
|
|
|
|
|
subTitle:
|
|
|
|
|
TranslationBase.of(context).lab,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Expanded(
|
|
|
|
|
flex: 1,
|
|
|
|
|
child: InkWell(
|
|
|
|
|
onTap: () => Navigator.push(
|
|
|
|
|
context, FadePage(page: RadiologyHomePage())),
|
|
|
|
|
onTap: () => Navigator.push(context,
|
|
|
|
|
FadePage(page: RadiologyHomePage())),
|
|
|
|
|
child: MedicalProfileItem(
|
|
|
|
|
title: TranslationBase.of(context).radiology,
|
|
|
|
|
title: TranslationBase.of(context)
|
|
|
|
|
.radiology,
|
|
|
|
|
imagePath: 'radiology_icon.png',
|
|
|
|
|
subTitle: TranslationBase.of(context)
|
|
|
|
|
.radiologySubtitle,
|
|
|
|
@ -626,7 +599,8 @@ class _HomePageState extends State<HomePage> {
|
|
|
|
|
);
|
|
|
|
|
},
|
|
|
|
|
child: MedicalProfileItem(
|
|
|
|
|
title: TranslationBase.of(context).medicines,
|
|
|
|
|
title: TranslationBase.of(context)
|
|
|
|
|
.medicines,
|
|
|
|
|
imagePath: 'prescription_icon.png',
|
|
|
|
|
subTitle: TranslationBase.of(context)
|
|
|
|
|
.medicinesSubtitle,
|
|
|
|
@ -645,7 +619,8 @@ class _HomePageState extends State<HomePage> {
|
|
|
|
|
);
|
|
|
|
|
},
|
|
|
|
|
child: MedicalProfileItem(
|
|
|
|
|
title: TranslationBase.of(context).myDoctor,
|
|
|
|
|
title: TranslationBase.of(context)
|
|
|
|
|
.myDoctor,
|
|
|
|
|
imagePath: 'doctor_icon.png',
|
|
|
|
|
subTitle: TranslationBase.of(context)
|
|
|
|
|
.myDoctorSubtitle,
|
|
|
|
@ -656,11 +631,12 @@ class _HomePageState extends State<HomePage> {
|
|
|
|
|
flex: 1,
|
|
|
|
|
child: InkWell(
|
|
|
|
|
onTap: () {
|
|
|
|
|
Navigator.push(
|
|
|
|
|
context, FadePage(page: InsuranceCard()));
|
|
|
|
|
Navigator.push(context,
|
|
|
|
|
FadePage(page: InsuranceCard()));
|
|
|
|
|
},
|
|
|
|
|
child: MedicalProfileItem(
|
|
|
|
|
title: TranslationBase.of(context).insurance,
|
|
|
|
|
title: TranslationBase.of(context)
|
|
|
|
|
.insurance,
|
|
|
|
|
imagePath: 'insurance_card_icon.png',
|
|
|
|
|
subTitle: TranslationBase.of(context)
|
|
|
|
|
.insuranceSubtitle,
|
|
|
|
@ -669,6 +645,7 @@ class _HomePageState extends State<HomePage> {
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
@ -691,11 +668,10 @@ class _HomePageState extends State<HomePage> {
|
|
|
|
|
Texts(
|
|
|
|
|
TranslationBase.of(context).hMGService,
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
fontWeight: FontWeight.normal,
|
|
|
|
|
bold: true,
|
|
|
|
|
),
|
|
|
|
|
Texts(
|
|
|
|
|
TranslationBase.of(context)
|
|
|
|
|
.viewAllHabibMedicalService,
|
|
|
|
|
TranslationBase.of(context).viewAllHabibMedicalService,
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
fontWeight: FontWeight.normal,
|
|
|
|
|
fontSize: 10,
|
|
|
|
@ -706,7 +682,7 @@ class _HomePageState extends State<HomePage> {
|
|
|
|
|
Texts(
|
|
|
|
|
TranslationBase.of(context).viewMore,
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
//fontWeight: FontWeight.normal,
|
|
|
|
|
bold: true,
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
@ -721,8 +697,6 @@ class _HomePageState extends State<HomePage> {
|
|
|
|
|
DashboardItem(
|
|
|
|
|
opacity:1.0,
|
|
|
|
|
onTap: () {
|
|
|
|
|
// Navigator.push(
|
|
|
|
|
// context, FadePage(page: FeedbackHomePage()));
|
|
|
|
|
Navigator.push(
|
|
|
|
|
context, FadePage(page: ContactUsPage()));
|
|
|
|
|
},
|
|
|
|
@ -735,13 +709,13 @@ class _HomePageState extends State<HomePage> {
|
|
|
|
|
Texts(
|
|
|
|
|
TranslationBase.of(context).contactUs,
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
fontWeight: FontWeight.normal,
|
|
|
|
|
bold: true,
|
|
|
|
|
),
|
|
|
|
|
Texts(
|
|
|
|
|
TranslationBase.of(context).viewAllWaysReachUs,
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
fontWeight: FontWeight.normal,
|
|
|
|
|
fontSize: 10,
|
|
|
|
|
fontSize: SizeConfig.textMultiplier * 1.0 ,
|
|
|
|
|
),
|
|
|
|
|
Expanded(
|
|
|
|
|
child: Container(),
|
|
|
|
@ -749,7 +723,7 @@ class _HomePageState extends State<HomePage> {
|
|
|
|
|
Texts(
|
|
|
|
|
TranslationBase.of(context).viewMore,
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
fontWeight: FontWeight.normal,
|
|
|
|
|
bold: true,
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
@ -806,9 +780,7 @@ class DashboardItem extends StatelessWidget {
|
|
|
|
|
this.width,
|
|
|
|
|
this.height,
|
|
|
|
|
this.color,
|
|
|
|
|
this.opacity = 1.0,
|
|
|
|
|
this.icon,
|
|
|
|
|
this.margin = 0})
|
|
|
|
|
this.opacity = 1.0,this.icon,this.margin=0})
|
|
|
|
|
: super(key: key);
|
|
|
|
|
final bool hasBorder;
|
|
|
|
|
final String imageName;
|
|
|
|
|