|
|
|
@ -9,6 +9,7 @@ import 'package:diplomaticquarterapp/pages/medical/radiology/radiology_home_page
|
|
|
|
import 'package:diplomaticquarterapp/pages/medical/vital_sign/vital_sign_details_screen.dart';
|
|
|
|
import 'package:diplomaticquarterapp/pages/medical/vital_sign/vital_sign_details_screen.dart';
|
|
|
|
import 'package:diplomaticquarterapp/pages/medical/reports/report_home_page.dart';
|
|
|
|
import 'package:diplomaticquarterapp/pages/medical/reports/report_home_page.dart';
|
|
|
|
import 'package:diplomaticquarterapp/widgets/data_display/medical/medical_profile_item.dart';
|
|
|
|
import 'package:diplomaticquarterapp/widgets/data_display/medical/medical_profile_item.dart';
|
|
|
|
|
|
|
|
import 'package:diplomaticquarterapp/widgets/data_display/medical/time_line_widget.dart';
|
|
|
|
import 'package:diplomaticquarterapp/widgets/data_display/text.dart';
|
|
|
|
import 'package:diplomaticquarterapp/widgets/data_display/text.dart';
|
|
|
|
import 'package:diplomaticquarterapp/widgets/others/app_scaffold_widget.dart';
|
|
|
|
import 'package:diplomaticquarterapp/widgets/others/app_scaffold_widget.dart';
|
|
|
|
import 'package:diplomaticquarterapp/widgets/others/sliver_app_bar_delegate.dart';
|
|
|
|
import 'package:diplomaticquarterapp/widgets/others/sliver_app_bar_delegate.dart';
|
|
|
|
@ -28,7 +29,6 @@ class MedicalProfilePage extends StatefulWidget {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
class _MedicalProfilePageState extends State<MedicalProfilePage> {
|
|
|
|
class _MedicalProfilePageState extends State<MedicalProfilePage> {
|
|
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
return BaseView<MedicalViewModel>(
|
|
|
|
return BaseView<MedicalViewModel>(
|
|
|
|
@ -46,7 +46,18 @@ class _MedicalProfilePageState extends State<MedicalProfilePage> {
|
|
|
|
Container(
|
|
|
|
Container(
|
|
|
|
width: double.infinity,
|
|
|
|
width: double.infinity,
|
|
|
|
color: Colors.grey,
|
|
|
|
color: Colors.grey,
|
|
|
|
height: 150,
|
|
|
|
height: 210,
|
|
|
|
|
|
|
|
child: ListView.builder(
|
|
|
|
|
|
|
|
itemBuilder: (context, index) => TimeLineWidget(
|
|
|
|
|
|
|
|
isUp: index % 2 == 1,
|
|
|
|
|
|
|
|
appoitmentAllHistoryResul:
|
|
|
|
|
|
|
|
model.appoitmentAllHistoryResultList[index],
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
itemCount:
|
|
|
|
|
|
|
|
model.appoitmentAllHistoryResultList.length,
|
|
|
|
|
|
|
|
scrollDirection: Axis.horizontal,
|
|
|
|
|
|
|
|
reverse: true,
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Padding(
|
|
|
|
Padding(
|
|
|
|
padding: EdgeInsets.symmetric(vertical: 12.0),
|
|
|
|
padding: EdgeInsets.symmetric(vertical: 12.0),
|
|
|
|
@ -87,7 +98,8 @@ class _MedicalProfilePageState extends State<MedicalProfilePage> {
|
|
|
|
Expanded(
|
|
|
|
Expanded(
|
|
|
|
flex: 1,
|
|
|
|
flex: 1,
|
|
|
|
child: InkWell(
|
|
|
|
child: InkWell(
|
|
|
|
onTap: () => Navigator.push(context, FadePage(page: LabsHomePage())),
|
|
|
|
onTap: () => Navigator.push(context,
|
|
|
|
|
|
|
|
FadePage(page: LabsHomePage())),
|
|
|
|
child: MedicalProfileItem(
|
|
|
|
child: MedicalProfileItem(
|
|
|
|
title: 'Lab',
|
|
|
|
title: 'Lab',
|
|
|
|
imagePath: 'lab_result_icon.png',
|
|
|
|
imagePath: 'lab_result_icon.png',
|
|
|
|
@ -249,10 +261,10 @@ class _MedicalProfilePageState extends State<MedicalProfilePage> {
|
|
|
|
Expanded(
|
|
|
|
Expanded(
|
|
|
|
flex: 1,
|
|
|
|
flex: 1,
|
|
|
|
child: InkWell(
|
|
|
|
child: InkWell(
|
|
|
|
onTap: () {
|
|
|
|
onTap: () {
|
|
|
|
Navigator.push(
|
|
|
|
Navigator.push(context,
|
|
|
|
context, FadePage(page: HomeReportPage()));
|
|
|
|
FadePage(page: HomeReportPage()));
|
|
|
|
},
|
|
|
|
},
|
|
|
|
child: MedicalProfileItem(
|
|
|
|
child: MedicalProfileItem(
|
|
|
|
title: 'Medical',
|
|
|
|
title: 'Medical',
|
|
|
|
imagePath: 'insurance_approvals_icon.png',
|
|
|
|
imagePath: 'insurance_approvals_icon.png',
|
|
|
|
@ -393,7 +405,7 @@ class _MedicalProfilePageState extends State<MedicalProfilePage> {
|
|
|
|
),
|
|
|
|
),
|
|
|
|
if (model.user != null)
|
|
|
|
if (model.user != null)
|
|
|
|
Positioned(
|
|
|
|
Positioned(
|
|
|
|
top: 110,
|
|
|
|
top: 175,
|
|
|
|
left: 20,
|
|
|
|
left: 20,
|
|
|
|
right: 20,
|
|
|
|
right: 20,
|
|
|
|
child: Container(
|
|
|
|
child: Container(
|
|
|
|
@ -404,7 +416,7 @@ class _MedicalProfilePageState extends State<MedicalProfilePage> {
|
|
|
|
shape: BoxShape.rectangle,
|
|
|
|
shape: BoxShape.rectangle,
|
|
|
|
border: Border.all(
|
|
|
|
border: Border.all(
|
|
|
|
color: Colors.transparent, width: 0.5),
|
|
|
|
color: Colors.transparent, width: 0.5),
|
|
|
|
borderRadius: BorderRadius.all(Radius.circular(5)),
|
|
|
|
borderRadius: BorderRadius.all(Radius.circular(9)),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
child: Column(
|
|
|
|
child: Column(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
@ -428,7 +440,11 @@ class _MedicalProfilePageState extends State<MedicalProfilePage> {
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
)
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Positioned(top: 10,left: 10,
|
|
|
|
|
|
|
|
child: Texts('Time Line ',color: Colors.white,fontSize: 14,fontWeight: FontWeight.normal,),
|
|
|
|
|
|
|
|
)
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
|