|
|
|
@ -62,18 +62,13 @@ class _MedicalProfilePageState extends State<MedicalProfilePage> {
|
|
|
|
Container(
|
|
|
|
Container(
|
|
|
|
width: double.infinity,
|
|
|
|
width: double.infinity,
|
|
|
|
height: 210,
|
|
|
|
height: 210,
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
|
|
|
image: DecorationImage(
|
|
|
|
|
|
|
|
image: ExactAssetImage(
|
|
|
|
|
|
|
|
'assets/images/timeline_bg.png'),
|
|
|
|
|
|
|
|
fit: BoxFit.cover),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
child: Stack(
|
|
|
|
child: Stack(
|
|
|
|
children: <Widget>[
|
|
|
|
children: <Widget>[
|
|
|
|
Image.asset(
|
|
|
|
Image.asset(
|
|
|
|
'assets/images/timeline_bg.png',
|
|
|
|
'assets/images/timeline_bg.png',
|
|
|
|
fit: BoxFit.cover,
|
|
|
|
fit: BoxFit.cover,
|
|
|
|
width: double.infinity,
|
|
|
|
width: double.infinity,
|
|
|
|
|
|
|
|
// color: Colors.black.withOpacity(0.0)
|
|
|
|
),
|
|
|
|
),
|
|
|
|
if(model.authenticatedUserObject.isLogin)
|
|
|
|
if(model.authenticatedUserObject.isLogin)
|
|
|
|
ListView.builder(
|
|
|
|
ListView.builder(
|
|
|
|
@ -149,62 +144,6 @@ class _MedicalProfilePageState extends State<MedicalProfilePage> {
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Row(
|
|
|
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
|
|
|
Expanded(
|
|
|
|
|
|
|
|
flex: 1,
|
|
|
|
|
|
|
|
child: InkWell(
|
|
|
|
|
|
|
|
onTap: () {
|
|
|
|
|
|
|
|
Navigator.push(
|
|
|
|
|
|
|
|
context,
|
|
|
|
|
|
|
|
FadePage(
|
|
|
|
|
|
|
|
page: HomePrescriptionsPage(),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
child: MedicalProfileItem(
|
|
|
|
|
|
|
|
title: TranslationBase.of(context)
|
|
|
|
|
|
|
|
.medicines,
|
|
|
|
|
|
|
|
imagePath: 'prescription_icon.png',
|
|
|
|
|
|
|
|
subTitle: TranslationBase.of(context)
|
|
|
|
|
|
|
|
.medicinesSubtitle,
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
Expanded(
|
|
|
|
|
|
|
|
flex: 1,
|
|
|
|
|
|
|
|
child: InkWell(
|
|
|
|
|
|
|
|
onTap: () => Navigator.push(
|
|
|
|
|
|
|
|
context,
|
|
|
|
|
|
|
|
FadePage(
|
|
|
|
|
|
|
|
page: VitalSignDetailsScreen(),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
child: MedicalProfileItem(
|
|
|
|
|
|
|
|
title: TranslationBase.of(context)
|
|
|
|
|
|
|
|
.vitalSigns,
|
|
|
|
|
|
|
|
imagePath: 'vital_signs.png',
|
|
|
|
|
|
|
|
subTitle: TranslationBase.of(context)
|
|
|
|
|
|
|
|
.vitalSignsSubtitle,
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
Expanded(
|
|
|
|
|
|
|
|
flex: 1,
|
|
|
|
|
|
|
|
child: InkWell(
|
|
|
|
|
|
|
|
onTap: () => Navigator.push(context,
|
|
|
|
|
|
|
|
FadePage(page: ActiveMedicationsPage())),
|
|
|
|
|
|
|
|
child: MedicalProfileItem(
|
|
|
|
|
|
|
|
title: TranslationBase.of(context)
|
|
|
|
|
|
|
|
.myMedical,
|
|
|
|
|
|
|
|
imagePath: 'active_medications.png',
|
|
|
|
|
|
|
|
subTitle: TranslationBase.of(context)
|
|
|
|
|
|
|
|
.myMedicalSubtitle,
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
Row(
|
|
|
|
Row(
|
|
|
|
children: <Widget>[
|
|
|
|
children: <Widget>[
|
|
|
|
Expanded(
|
|
|
|
Expanded(
|
|
|
|
@ -234,13 +173,16 @@ class _MedicalProfilePageState extends State<MedicalProfilePage> {
|
|
|
|
Navigator.push(
|
|
|
|
Navigator.push(
|
|
|
|
context,
|
|
|
|
context,
|
|
|
|
FadePage(
|
|
|
|
FadePage(
|
|
|
|
page: EyeMeasurementsPage()));
|
|
|
|
page: HomePrescriptionsPage(),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
child: MedicalProfileItem(
|
|
|
|
child: MedicalProfileItem(
|
|
|
|
title: TranslationBase.of(context).eye,
|
|
|
|
title: TranslationBase.of(context)
|
|
|
|
imagePath: 'eye_measurement_icon.png',
|
|
|
|
.medicines,
|
|
|
|
|
|
|
|
imagePath: 'prescription_icon.png',
|
|
|
|
subTitle: TranslationBase.of(context)
|
|
|
|
subTitle: TranslationBase.of(context)
|
|
|
|
.eyeSubtitle,
|
|
|
|
.medicinesSubtitle,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
@ -262,39 +204,8 @@ class _MedicalProfilePageState extends State<MedicalProfilePage> {
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Row(children: <Widget>[
|
|
|
|
Row(
|
|
|
|
Expanded(
|
|
|
|
children: <Widget>[
|
|
|
|
flex: 1,
|
|
|
|
|
|
|
|
child: InkWell(
|
|
|
|
|
|
|
|
onTap: () {
|
|
|
|
|
|
|
|
Navigator.push(context,
|
|
|
|
|
|
|
|
FadePage(page: InsuranceUpdate()));
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
child: MedicalProfileItem(
|
|
|
|
|
|
|
|
title: TranslationBase.of(context)
|
|
|
|
|
|
|
|
.updateInsurance,
|
|
|
|
|
|
|
|
imagePath: 'insurance_update_icon_.png',
|
|
|
|
|
|
|
|
subTitle: TranslationBase.of(context)
|
|
|
|
|
|
|
|
.updateInsuranceSubtitle,
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
Expanded(
|
|
|
|
|
|
|
|
flex: 1,
|
|
|
|
|
|
|
|
child: InkWell(
|
|
|
|
|
|
|
|
onTap: () {
|
|
|
|
|
|
|
|
Navigator.push(context,
|
|
|
|
|
|
|
|
FadePage(page: InsuranceApproval()));
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
child: MedicalProfileItem(
|
|
|
|
|
|
|
|
title: TranslationBase.of(context)
|
|
|
|
|
|
|
|
.insuranceApproval,
|
|
|
|
|
|
|
|
imagePath: 'insurance_approvals_icon.png',
|
|
|
|
|
|
|
|
subTitle: TranslationBase.of(context)
|
|
|
|
|
|
|
|
.insuranceApprovalSubtitle,
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
Expanded(
|
|
|
|
Expanded(
|
|
|
|
flex: 1,
|
|
|
|
flex: 1,
|
|
|
|
child: InkWell(
|
|
|
|
child: InkWell(
|
|
|
|
@ -307,58 +218,6 @@ class _MedicalProfilePageState extends State<MedicalProfilePage> {
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
]),
|
|
|
|
|
|
|
|
Row(children: <Widget>[
|
|
|
|
|
|
|
|
Expanded(
|
|
|
|
|
|
|
|
flex: 1,
|
|
|
|
|
|
|
|
child: InkWell(
|
|
|
|
|
|
|
|
onTap: () {
|
|
|
|
|
|
|
|
Navigator.push(context,
|
|
|
|
|
|
|
|
FadePage(page: MyVaccines()));
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
child: MedicalProfileItem(
|
|
|
|
|
|
|
|
title: TranslationBase.of(context)
|
|
|
|
|
|
|
|
.myVaccines,
|
|
|
|
|
|
|
|
imagePath: 'my_vaccines_icon.png',
|
|
|
|
|
|
|
|
subTitle: TranslationBase.of(context)
|
|
|
|
|
|
|
|
.myVaccinesSubtitle,
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
Expanded(
|
|
|
|
|
|
|
|
flex: 1,
|
|
|
|
|
|
|
|
child: InkWell(
|
|
|
|
|
|
|
|
onTap: () {
|
|
|
|
|
|
|
|
Navigator.push(context,
|
|
|
|
|
|
|
|
FadePage(page: HomeReportPage()));
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
child: MedicalProfileItem(
|
|
|
|
|
|
|
|
title:
|
|
|
|
|
|
|
|
TranslationBase.of(context).medical,
|
|
|
|
|
|
|
|
imagePath: 'medical_reports_icon.png',
|
|
|
|
|
|
|
|
subTitle: TranslationBase.of(context)
|
|
|
|
|
|
|
|
.medicalSubtitle,
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
Expanded(
|
|
|
|
|
|
|
|
flex: 1,
|
|
|
|
|
|
|
|
child: InkWell(
|
|
|
|
|
|
|
|
onTap: () {
|
|
|
|
|
|
|
|
Navigator.push(context,
|
|
|
|
|
|
|
|
FadePage(page: MonthlyReportsPage()));
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
child: MedicalProfileItem(
|
|
|
|
|
|
|
|
title:
|
|
|
|
|
|
|
|
TranslationBase.of(context).monthly,
|
|
|
|
|
|
|
|
imagePath: 'monthly_reports_icon.png',
|
|
|
|
|
|
|
|
subTitle: TranslationBase.of(context)
|
|
|
|
|
|
|
|
.monthlySubtitle,
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
]),
|
|
|
|
|
|
|
|
Row(children: <Widget>[
|
|
|
|
|
|
|
|
Expanded(
|
|
|
|
Expanded(
|
|
|
|
flex: 1,
|
|
|
|
flex: 1,
|
|
|
|
child: InkWell(
|
|
|
|
child: InkWell(
|
|
|
|
@ -381,117 +240,40 @@ class _MedicalProfilePageState extends State<MedicalProfilePage> {
|
|
|
|
child: InkWell(
|
|
|
|
child: InkWell(
|
|
|
|
onTap: () {
|
|
|
|
onTap: () {
|
|
|
|
Navigator.push(context,
|
|
|
|
Navigator.push(context,
|
|
|
|
FadePage(page: MyBalancePage()));
|
|
|
|
FadePage(page: InsuranceApproval()));
|
|
|
|
},
|
|
|
|
},
|
|
|
|
child: MedicalProfileItem(
|
|
|
|
child: MedicalProfileItem(
|
|
|
|
title:
|
|
|
|
title: TranslationBase.of(context)
|
|
|
|
TranslationBase.of(context).myBalance,
|
|
|
|
.insuranceApproval,
|
|
|
|
imagePath: 'check-in.png',
|
|
|
|
imagePath: 'insurance_approvals_icon.png',
|
|
|
|
subTitle: TranslationBase.of(context)
|
|
|
|
subTitle: TranslationBase.of(context)
|
|
|
|
.myBalanceSubtitle,
|
|
|
|
.insuranceApprovalSubtitle,
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Expanded(
|
|
|
|
|
|
|
|
flex: 1,
|
|
|
|
|
|
|
|
child: MedicalProfileItem(
|
|
|
|
|
|
|
|
title:
|
|
|
|
|
|
|
|
TranslationBase.of(context).patientCall,
|
|
|
|
|
|
|
|
imagePath: 'medical_history_icon.png',
|
|
|
|
|
|
|
|
subTitle: TranslationBase.of(context)
|
|
|
|
|
|
|
|
.patientCallSubtitle,
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
]),
|
|
|
|
|
|
|
|
Row(children: <Widget>[
|
|
|
|
Row(children: <Widget>[
|
|
|
|
Expanded(
|
|
|
|
|
|
|
|
flex: 1,
|
|
|
|
|
|
|
|
child: InkWell(
|
|
|
|
|
|
|
|
//TODO
|
|
|
|
|
|
|
|
onTap: () {
|
|
|
|
|
|
|
|
Navigator.push(
|
|
|
|
|
|
|
|
context, FadePage(page: SmartWatchInstructions()));
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
child: MedicalProfileItem(
|
|
|
|
|
|
|
|
title: TranslationBase.of(context)
|
|
|
|
|
|
|
|
.smartWatches,
|
|
|
|
|
|
|
|
imagePath: 'smartwatch_icon.png',
|
|
|
|
|
|
|
|
subTitle: TranslationBase.of(context)
|
|
|
|
|
|
|
|
.smartWatchesSubtitle,
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
Expanded(
|
|
|
|
Expanded(
|
|
|
|
flex: 1,
|
|
|
|
flex: 1,
|
|
|
|
child: InkWell(
|
|
|
|
child: InkWell(
|
|
|
|
onTap: () {
|
|
|
|
onTap: () {
|
|
|
|
Navigator.push(context,
|
|
|
|
Navigator.push(context,
|
|
|
|
FadePage(page: MyTrackers()));
|
|
|
|
FadePage(page: HomeReportPage()));
|
|
|
|
},
|
|
|
|
|
|
|
|
child: MedicalProfileItem(
|
|
|
|
|
|
|
|
title: TranslationBase.of(context)
|
|
|
|
|
|
|
|
.myTrackers,
|
|
|
|
|
|
|
|
imagePath: 'my_tracker_icon.png',
|
|
|
|
|
|
|
|
subTitle: TranslationBase.of(context)
|
|
|
|
|
|
|
|
.myTrackersSubtitle,
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
Expanded(
|
|
|
|
|
|
|
|
flex: 1,
|
|
|
|
|
|
|
|
child: InkWell(
|
|
|
|
|
|
|
|
onTap: (){
|
|
|
|
|
|
|
|
Navigator.push(context,
|
|
|
|
|
|
|
|
FadePage(page: AskDoctorHomPage()));
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
child: MedicalProfileItem(
|
|
|
|
|
|
|
|
title: TranslationBase.of(context).askYour,
|
|
|
|
|
|
|
|
imagePath: 'ask_doctor_icon.png',
|
|
|
|
|
|
|
|
subTitle: TranslationBase.of(context)
|
|
|
|
|
|
|
|
.askYourSubtitle,
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
]),
|
|
|
|
|
|
|
|
Row(children: <Widget>[
|
|
|
|
|
|
|
|
Expanded(
|
|
|
|
|
|
|
|
flex: 1,
|
|
|
|
|
|
|
|
child: InkWell(
|
|
|
|
|
|
|
|
//TODO
|
|
|
|
|
|
|
|
// onTap: () {
|
|
|
|
|
|
|
|
// Navigator.push(
|
|
|
|
|
|
|
|
// context, FadePage(page: DoctorHomePage()));
|
|
|
|
|
|
|
|
// },
|
|
|
|
|
|
|
|
child: MedicalProfileItem(
|
|
|
|
|
|
|
|
title:
|
|
|
|
|
|
|
|
TranslationBase.of(context).internet,
|
|
|
|
|
|
|
|
imagePath: 'insurance_card_icon.png',
|
|
|
|
|
|
|
|
subTitle: TranslationBase.of(context)
|
|
|
|
|
|
|
|
.internetSubtitle,
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
Expanded(
|
|
|
|
|
|
|
|
flex: 1,
|
|
|
|
|
|
|
|
child: InkWell(
|
|
|
|
|
|
|
|
// onTap: () {
|
|
|
|
|
|
|
|
// Navigator.push(
|
|
|
|
|
|
|
|
// context, FadePage(page: InsuranceApproval()));
|
|
|
|
|
|
|
|
// },
|
|
|
|
|
|
|
|
child: MedicalProfileItem(
|
|
|
|
child: MedicalProfileItem(
|
|
|
|
title:
|
|
|
|
title:
|
|
|
|
TranslationBase.of(context).chatbot,
|
|
|
|
TranslationBase.of(context).medical,
|
|
|
|
imagePath: 'insurance_approvals_icon.png',
|
|
|
|
imagePath: 'medical_reports_icon.png',
|
|
|
|
subTitle: TranslationBase.of(context)
|
|
|
|
subTitle: TranslationBase.of(context)
|
|
|
|
.chatbotSubtitle,
|
|
|
|
.medicalSubtitle,
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Expanded(
|
|
|
|
|
|
|
|
flex: 1,
|
|
|
|
|
|
|
|
child: Container(),
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
Expanded(child: Container(),),
|
|
|
|
|
|
|
|
Expanded(child: Container(),),
|
|
|
|
]),
|
|
|
|
]),
|
|
|
|
|
|
|
|
|
|
|
|
SizedBox(height: MediaQuery.of(context).size.height * 0.12,)
|
|
|
|
SizedBox(height: MediaQuery.of(context).size.height * 0.12,)
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
@ -529,6 +311,7 @@ class _MedicalProfilePageState extends State<MedicalProfilePage> {
|
|
|
|
" " +
|
|
|
|
" " +
|
|
|
|
model.user.lastName,
|
|
|
|
model.user.lastName,
|
|
|
|
color: Colors.white,
|
|
|
|
color: Colors.white,
|
|
|
|
|
|
|
|
bold: true,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
|
|
Texts(
|
|
|
|
Texts(
|
|
|
|
|