|
|
|
@ -32,46 +32,61 @@ class PatientProfileWidget extends StatelessWidget {
|
|
|
|
|
// ProfileStatusInfoWidget()
|
|
|
|
|
// ]);
|
|
|
|
|
|
|
|
|
|
return Container(
|
|
|
|
|
child: Column(children: <Widget>[
|
|
|
|
|
Expanded(
|
|
|
|
|
flex: 1,
|
|
|
|
|
child:
|
|
|
|
|
Row(mainAxisAlignment: MainAxisAlignment.center, children: <Widget>[
|
|
|
|
|
Column(children: <Widget>[
|
|
|
|
|
Container(
|
|
|
|
|
padding: EdgeInsets.only(top: 20),
|
|
|
|
|
child: ProfileImageWidget(
|
|
|
|
|
url:
|
|
|
|
|
"https://hmgwebservices.com/Images/MobileImages/DUBAI/unkown_female.png",
|
|
|
|
|
name: patient.firstName + ' ' + patient.lastName,
|
|
|
|
|
fontsize: 24.0,
|
|
|
|
|
color: Colors.black,
|
|
|
|
|
),
|
|
|
|
|
return CustomScrollView(primary: false, slivers: <Widget>[
|
|
|
|
|
SliverList(
|
|
|
|
|
delegate: SliverChildListDelegate(
|
|
|
|
|
[
|
|
|
|
|
Expanded(
|
|
|
|
|
flex: 1,
|
|
|
|
|
child: Row(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
Column(children: <Widget>[
|
|
|
|
|
Container(
|
|
|
|
|
padding: EdgeInsets.only(top: 20),
|
|
|
|
|
child: ProfileImageWidget(
|
|
|
|
|
url:
|
|
|
|
|
"https://hmgwebservices.com/Images/MobileImages/DUBAI/unkown_female.png",
|
|
|
|
|
name: patient.firstName + ' ' + patient.lastName,
|
|
|
|
|
fontsize: 24.0,
|
|
|
|
|
color: Colors.black,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Container(
|
|
|
|
|
child: Column(
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
AppText(
|
|
|
|
|
'File No: ' + patient.patientId.toString(),
|
|
|
|
|
fontWeight: FontWeight.normal,
|
|
|
|
|
fontSize: 16,
|
|
|
|
|
),
|
|
|
|
|
AppText(
|
|
|
|
|
patient.genderDescription.toString() +
|
|
|
|
|
', ' +
|
|
|
|
|
patient.age,
|
|
|
|
|
fontWeight: FontWeight.normal,
|
|
|
|
|
fontSize: 16,
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
]),
|
|
|
|
|
]),
|
|
|
|
|
),
|
|
|
|
|
Container(
|
|
|
|
|
child: Column(
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
AppText(
|
|
|
|
|
'File No: ' + patient.patientId.toString(),
|
|
|
|
|
fontWeight: FontWeight.normal,
|
|
|
|
|
fontSize: 16,
|
|
|
|
|
),
|
|
|
|
|
AppText(
|
|
|
|
|
patient.genderDescription.toString() + ', ' + patient.age,
|
|
|
|
|
fontWeight: FontWeight.normal,
|
|
|
|
|
fontSize: 16,
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
]),
|
|
|
|
|
]),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Expanded(
|
|
|
|
|
flex: 2,
|
|
|
|
|
child: ProfileMedicalInfoWidget(patient: patient),
|
|
|
|
|
)
|
|
|
|
|
]));
|
|
|
|
|
SliverPadding(
|
|
|
|
|
padding: const EdgeInsets.fromLTRB(20, 30, 15, 10),
|
|
|
|
|
sliver: ProfileMedicalInfoWidget())
|
|
|
|
|
]);
|
|
|
|
|
|
|
|
|
|
// Container(
|
|
|
|
|
// child: Column(children: <Widget>[
|
|
|
|
|
// Expanded(
|
|
|
|
|
// flex: 2,
|
|
|
|
|
// child: ,
|
|
|
|
|
// )
|
|
|
|
|
// ]));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|