|
|
|
|
@ -71,14 +71,17 @@ class PatientProfileAppBar extends StatelessWidget with PreferredSizeWidget {
|
|
|
|
|
right: 5,
|
|
|
|
|
bottom: 5,
|
|
|
|
|
),
|
|
|
|
|
decoration: BoxDecoration(color: Colors.white, border: Border(bottom: BorderSide(color: Color(0xFFEFEFEF)))),
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
border: Border(bottom: BorderSide(color: Color(0xFFEFEFEF)))),
|
|
|
|
|
child: Container(
|
|
|
|
|
padding: EdgeInsets.only(left: 10, right: 10, bottom: 10),
|
|
|
|
|
margin: EdgeInsets.only(top: SizeConfig.isHeightVeryShort ? 30 : 50),
|
|
|
|
|
child: Column(
|
|
|
|
|
children: [
|
|
|
|
|
Container(
|
|
|
|
|
padding: EdgeInsets.only(left: SizeConfig.isHeightVeryShort ? 0 : 12.0),
|
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
|
left: SizeConfig.isHeightVeryShort ? 0 : 12.0),
|
|
|
|
|
child: Row(children: [
|
|
|
|
|
IconButton(
|
|
|
|
|
icon: Icon(Icons.arrow_back_ios),
|
|
|
|
|
@ -91,8 +94,11 @@ class PatientProfileAppBar extends StatelessWidget with PreferredSizeWidget {
|
|
|
|
|
Expanded(
|
|
|
|
|
child: AppText(
|
|
|
|
|
patient.firstName != null
|
|
|
|
|
? (Helpers.capitalize(patient.firstName) + " " + Helpers.capitalize(patient.lastName))
|
|
|
|
|
: Helpers.capitalize(patient.fullName ?? patient.patientDetails.fullName),
|
|
|
|
|
? (Helpers.capitalize(patient.firstName) +
|
|
|
|
|
" " +
|
|
|
|
|
Helpers.capitalize(patient.lastName))
|
|
|
|
|
: Helpers.capitalize(patient.fullName ??
|
|
|
|
|
patient.patientDetails.fullName),
|
|
|
|
|
fontSize: SizeConfig.textMultiplier * 1.8,
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
fontFamily: 'Poppins',
|
|
|
|
|
@ -125,7 +131,8 @@ class PatientProfileAppBar extends StatelessWidget with PreferredSizeWidget {
|
|
|
|
|
),
|
|
|
|
|
Row(children: [
|
|
|
|
|
Padding(
|
|
|
|
|
padding: EdgeInsets.only(left: SizeConfig.isHeightVeryShort ? 0 : 12.0),
|
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
|
left: SizeConfig.isHeightVeryShort ? 0 : 12.0),
|
|
|
|
|
child: Container(
|
|
|
|
|
width: SizeConfig.getTextMultiplierBasedOnWidth() * 20,
|
|
|
|
|
height: SizeConfig.getTextMultiplierBasedOnWidth() * 20,
|
|
|
|
|
@ -153,19 +160,25 @@ class PatientProfileAppBar extends StatelessWidget with PreferredSizeWidget {
|
|
|
|
|
color: Colors.green,
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
fontFamily: 'Poppins',
|
|
|
|
|
fontSize: SizeConfig.getTextMultiplierBasedOnWidth() * 3.5,
|
|
|
|
|
fontSize: SizeConfig
|
|
|
|
|
.getTextMultiplierBasedOnWidth() *
|
|
|
|
|
3.5,
|
|
|
|
|
)
|
|
|
|
|
: AppText(
|
|
|
|
|
TranslationBase.of(context).notArrived,
|
|
|
|
|
color: Colors.red[800],
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
fontFamily: 'Poppins',
|
|
|
|
|
fontSize: SizeConfig.getTextMultiplierBasedOnWidth() * 3.5,
|
|
|
|
|
fontSize: SizeConfig
|
|
|
|
|
.getTextMultiplierBasedOnWidth() *
|
|
|
|
|
3.5,
|
|
|
|
|
),
|
|
|
|
|
patient.startTime != null
|
|
|
|
|
? AppText(patient.startTime != null ? patient.startTime : '',
|
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
|
fontSize: SizeConfig.getTextMultiplierBasedOnWidth() * 3.5,
|
|
|
|
|
fontSize: SizeConfig
|
|
|
|
|
.getTextMultiplierBasedOnWidth() *
|
|
|
|
|
3.5,
|
|
|
|
|
color: Color(0xFF2E303A))
|
|
|
|
|
: SizedBox()
|
|
|
|
|
],
|
|
|
|
|
@ -179,7 +192,9 @@ class PatientProfileAppBar extends StatelessWidget with PreferredSizeWidget {
|
|
|
|
|
children: [
|
|
|
|
|
AppText(
|
|
|
|
|
TranslationBase.of(context).fileNumber,
|
|
|
|
|
fontSize: SizeConfig.getTextMultiplierBasedOnWidth() * 3,
|
|
|
|
|
fontSize:
|
|
|
|
|
SizeConfig.getTextMultiplierBasedOnWidth() *
|
|
|
|
|
3,
|
|
|
|
|
color: Color(0xFF575757),
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
),
|
|
|
|
|
@ -188,7 +203,9 @@ class PatientProfileAppBar extends StatelessWidget with PreferredSizeWidget {
|
|
|
|
|
),
|
|
|
|
|
AppText(
|
|
|
|
|
patient.patientId.toString(),
|
|
|
|
|
fontSize: SizeConfig.getTextMultiplierBasedOnWidth() * 3.5,
|
|
|
|
|
fontSize:
|
|
|
|
|
SizeConfig.getTextMultiplierBasedOnWidth() *
|
|
|
|
|
3.5,
|
|
|
|
|
color: Color(0xFF2E303A),
|
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
|
isCopyable: true,
|
|
|
|
|
@ -198,9 +215,14 @@ class PatientProfileAppBar extends StatelessWidget with PreferredSizeWidget {
|
|
|
|
|
Row(
|
|
|
|
|
children: [
|
|
|
|
|
AppText(
|
|
|
|
|
patient.nationalityName ?? patient.nationality ?? patient.nationalityId ?? '',
|
|
|
|
|
patient.nationalityName ??
|
|
|
|
|
patient.nationality ??
|
|
|
|
|
patient.nationalityId ??
|
|
|
|
|
'',
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
fontSize: SizeConfig.getTextMultiplierBasedOnWidth() * 3.5,
|
|
|
|
|
fontSize:
|
|
|
|
|
SizeConfig.getTextMultiplierBasedOnWidth() *
|
|
|
|
|
3.5,
|
|
|
|
|
),
|
|
|
|
|
patient.nationalityFlagURL != null
|
|
|
|
|
? ClipRRect(
|
|
|
|
|
@ -209,7 +231,9 @@ class PatientProfileAppBar extends StatelessWidget with PreferredSizeWidget {
|
|
|
|
|
patient.nationalityFlagURL,
|
|
|
|
|
height: 25,
|
|
|
|
|
width: 30,
|
|
|
|
|
errorBuilder: (BuildContext context, Object exception, StackTrace stackTrace) {
|
|
|
|
|
errorBuilder: (BuildContext context,
|
|
|
|
|
Object exception,
|
|
|
|
|
StackTrace stackTrace) {
|
|
|
|
|
return Text('No Image');
|
|
|
|
|
},
|
|
|
|
|
))
|
|
|
|
|
@ -218,144 +242,52 @@ class PatientProfileAppBar extends StatelessWidget with PreferredSizeWidget {
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
Container(
|
|
|
|
|
child: RichText(
|
|
|
|
|
text: new TextSpan(
|
|
|
|
|
style: new TextStyle(
|
|
|
|
|
fontSize: 1.6 * SizeConfig.textMultiplier,
|
|
|
|
|
color: Colors.black,
|
|
|
|
|
fontFamily: 'Poppins',
|
|
|
|
|
),
|
|
|
|
|
children: <TextSpan>[
|
|
|
|
|
new TextSpan(
|
|
|
|
|
text: TranslationBase.of(context).age + " : ",
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontSize: SizeConfig.getTextMultiplierBasedOnWidth() * 3,
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
color: Color(0xFF575757),
|
|
|
|
|
)),
|
|
|
|
|
new TextSpan(
|
|
|
|
|
text:
|
|
|
|
|
"${AppDateUtils.getAgeByBirthday(patient.patientDetails != null ? patient.patientDetails.dateofBirth ?? "" : patient.dateofBirth ?? "", context, isServerFormat: !isFromLiveCare)}",
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
|
fontSize: SizeConfig.getTextMultiplierBasedOnWidth() * 3.5,
|
|
|
|
|
color: Color(0xFF2E303A),
|
|
|
|
|
)),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
HeaderRow(
|
|
|
|
|
label: TranslationBase.of(context).age + " : ",
|
|
|
|
|
value:
|
|
|
|
|
"${AppDateUtils.getAgeByBirthday(patient.patientDetails != null ? patient.patientDetails.dateofBirth ?? "" : patient.dateofBirth ?? "", context, isServerFormat: !isFromLiveCare)}",
|
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
if (patient.appointmentDate != null && patient.appointmentDate.isNotEmpty && !isFromLabResult)
|
|
|
|
|
Row(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.start,
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
AppText(
|
|
|
|
|
if (patient.appointmentDate != null &&
|
|
|
|
|
patient.appointmentDate.isNotEmpty &&
|
|
|
|
|
!isFromLabResult)
|
|
|
|
|
HeaderRow(
|
|
|
|
|
label:
|
|
|
|
|
TranslationBase.of(context).appointmentDate + " : ",
|
|
|
|
|
fontSize: SizeConfig.getTextMultiplierBasedOnWidth() * 3,
|
|
|
|
|
color: Color(0xFF575757),
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
fontFamily: 'Poppins',
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
width: 3.5,
|
|
|
|
|
),
|
|
|
|
|
AppText(
|
|
|
|
|
AppDateUtils.getDayMonthYearDateFormatted(
|
|
|
|
|
AppDateUtils.convertStringToDate(patient.appointmentDate)),
|
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
|
fontSize: SizeConfig.getTextMultiplierBasedOnWidth() * 3.5,
|
|
|
|
|
color: Color(0xFF2E303A),
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 0.5,
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
value: AppDateUtils.getDayMonthYearDateFormatted(
|
|
|
|
|
AppDateUtils.convertStringToDate(
|
|
|
|
|
patient.appointmentDate)),
|
|
|
|
|
),
|
|
|
|
|
if (isFromLabResult)
|
|
|
|
|
Container(
|
|
|
|
|
child: RichText(
|
|
|
|
|
text: new TextSpan(
|
|
|
|
|
style: new TextStyle(
|
|
|
|
|
fontSize: 1.6 * SizeConfig.textMultiplier,
|
|
|
|
|
color: Colors.black,
|
|
|
|
|
fontFamily: 'Poppins',
|
|
|
|
|
),
|
|
|
|
|
children: <TextSpan>[
|
|
|
|
|
new TextSpan(
|
|
|
|
|
text: "Result Date: ",
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontSize: SizeConfig.getTextMultiplierBasedOnWidth() * 3,
|
|
|
|
|
color: Color(0xFF575757),
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
fontFamily: 'Poppins',
|
|
|
|
|
)),
|
|
|
|
|
new TextSpan(
|
|
|
|
|
text:
|
|
|
|
|
'${AppDateUtils.getDayMonthYearDateFormatted(appointmentDate, isArabic: projectViewModel.isArabic)}',
|
|
|
|
|
style: TextStyle(fontWeight: FontWeight.w700, fontSize: 12)),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
HeaderRow(
|
|
|
|
|
label: "Result Date: ",
|
|
|
|
|
value:
|
|
|
|
|
'${AppDateUtils.getDayMonthYearDateFormatted(appointmentDate, isArabic: projectViewModel.isArabic)}',
|
|
|
|
|
),
|
|
|
|
|
// if(isInpatient)
|
|
|
|
|
Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
if (patient.admissionDate != null && patient.admissionDate.isNotEmpty)
|
|
|
|
|
Container(
|
|
|
|
|
child: RichText(
|
|
|
|
|
text: new TextSpan(
|
|
|
|
|
style: new TextStyle(
|
|
|
|
|
fontSize: SizeConfig.getTextMultiplierBasedOnWidth() * 3,
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
color: Color(0xFF575757),
|
|
|
|
|
fontFamily: 'Poppins',
|
|
|
|
|
),
|
|
|
|
|
children: <TextSpan>[
|
|
|
|
|
new TextSpan(
|
|
|
|
|
text: patient.admissionDate == null
|
|
|
|
|
? ""
|
|
|
|
|
: TranslationBase.of(context).admissionDate + " : ",
|
|
|
|
|
style: TextStyle(fontSize: 10)),
|
|
|
|
|
new TextSpan(
|
|
|
|
|
text: patient.admissionDate == null
|
|
|
|
|
? ""
|
|
|
|
|
: "${AppDateUtils.getDayMonthYearDateFormatted((AppDateUtils.getDateTimeFromServerFormat(patient.admissionDate.toString())))}",
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
|
fontSize: SizeConfig.getTextMultiplierBasedOnWidth() * 3.5,
|
|
|
|
|
color: Color(0xFF2E303A),
|
|
|
|
|
)),
|
|
|
|
|
]))),
|
|
|
|
|
if (patient.admissionDate != null)
|
|
|
|
|
Row(
|
|
|
|
|
children: [
|
|
|
|
|
AppText(
|
|
|
|
|
"${TranslationBase.of(context).numOfDays}: ",
|
|
|
|
|
fontSize: SizeConfig.getTextMultiplierBasedOnWidth() * 3,
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
color: Color(0xFF575757),
|
|
|
|
|
isCopyable: true,
|
|
|
|
|
),
|
|
|
|
|
if (isDischargedPatient && patient.dischargeDate != null)
|
|
|
|
|
AppText(
|
|
|
|
|
"${AppDateUtils.getDateTimeFromServerFormat(patient.dischargeDate).difference(AppDateUtils.getDateTimeFromServerFormat(patient.admissionDate)).inDays + 1}",
|
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
|
fontSize: SizeConfig.getTextMultiplierBasedOnWidth() * 3.5,
|
|
|
|
|
color: Color(0xFF2E303A),
|
|
|
|
|
)
|
|
|
|
|
else
|
|
|
|
|
AppText(
|
|
|
|
|
"${DateTime.now().difference(AppDateUtils.getDateTimeFromServerFormat(patient.admissionDate)).inDays + 1}",
|
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
|
fontSize: SizeConfig.getTextMultiplierBasedOnWidth() * 3.5,
|
|
|
|
|
color: Color(0xFF2E303A),
|
|
|
|
|
isCopyable: true,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
if (patient.admissionDate != null &&
|
|
|
|
|
patient.admissionDate.isNotEmpty)
|
|
|
|
|
HeaderRow(
|
|
|
|
|
label: patient.admissionDate == null
|
|
|
|
|
? ""
|
|
|
|
|
: TranslationBase.of(context).admissionDate +
|
|
|
|
|
" : ",
|
|
|
|
|
value: patient.admissionDate == null
|
|
|
|
|
? ""
|
|
|
|
|
: "${AppDateUtils.getDayMonthYearDateFormatted((AppDateUtils.getDateTimeFromServerFormat(patient.admissionDate.toString())))}",
|
|
|
|
|
),
|
|
|
|
|
if (patient.admissionDate != null)
|
|
|
|
|
HeaderRow(
|
|
|
|
|
label: "${TranslationBase.of(context).numOfDays}: ",
|
|
|
|
|
value: isDischargedPatient &&
|
|
|
|
|
patient.dischargeDate != null
|
|
|
|
|
? "${AppDateUtils.getDateTimeFromServerFormat(patient.dischargeDate).difference(AppDateUtils.getDateTimeFromServerFormat(patient.admissionDate)).inDays + 1}"
|
|
|
|
|
: "${DateTime.now().difference(AppDateUtils.getDateTimeFromServerFormat(patient.admissionDate)).inDays + 1}",
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
@ -374,7 +306,8 @@ class PatientProfileAppBar extends StatelessWidget with PreferredSizeWidget {
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
shape: BoxShape.rectangle,
|
|
|
|
|
border: Border(
|
|
|
|
|
bottom: BorderSide(color: Colors.grey[400], width: 2.5),
|
|
|
|
|
bottom:
|
|
|
|
|
BorderSide(color: Colors.grey[400], width: 2.5),
|
|
|
|
|
left: BorderSide(color: Colors.grey[400], width: 2.5),
|
|
|
|
|
)),
|
|
|
|
|
),
|
|
|
|
|
@ -397,100 +330,56 @@ class PatientProfileAppBar extends StatelessWidget with PreferredSizeWidget {
|
|
|
|
|
flex: 5,
|
|
|
|
|
child: Container(
|
|
|
|
|
margin: EdgeInsets.all(10),
|
|
|
|
|
child: Column(crossAxisAlignment: CrossAxisAlignment.start, children: <Widget>[
|
|
|
|
|
AppText(
|
|
|
|
|
'${TranslationBase.of(context).dr}$doctorName',
|
|
|
|
|
color: Color(0xFF2E303A),
|
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
|
fontSize: SizeConfig.getTextMultiplierBasedOnWidth() * 3.5,
|
|
|
|
|
),
|
|
|
|
|
if (orderNo != null && !isPrescriptions)
|
|
|
|
|
Row(
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
AppText(
|
|
|
|
|
'Order No: ',
|
|
|
|
|
fontSize: SizeConfig.getTextMultiplierBasedOnWidth() * 3,
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
color: Color(0xFF575757),
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
AppText(
|
|
|
|
|
'${TranslationBase.of(context).dr}$doctorName',
|
|
|
|
|
color: Color(0xFF2E303A),
|
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
|
fontSize: SizeConfig
|
|
|
|
|
.getTextMultiplierBasedOnWidth() *
|
|
|
|
|
3.5,
|
|
|
|
|
isCopyable: true,
|
|
|
|
|
),
|
|
|
|
|
if (orderNo != null && !isPrescriptions)
|
|
|
|
|
HeaderRow(
|
|
|
|
|
label: 'Order No: ',
|
|
|
|
|
value: orderNo ?? '',
|
|
|
|
|
),
|
|
|
|
|
AppText(orderNo ?? '', fontSize: 12)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
if (invoiceNO != null && !isPrescriptions)
|
|
|
|
|
Row(
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
AppText(
|
|
|
|
|
'Invoice: ',
|
|
|
|
|
fontSize: SizeConfig.getTextMultiplierBasedOnWidth() * 3,
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
color: Color(0xFF575757),
|
|
|
|
|
if (invoiceNO != null && !isPrescriptions)
|
|
|
|
|
HeaderRow(
|
|
|
|
|
label: 'Invoice: ',
|
|
|
|
|
value: invoiceNO ?? "",
|
|
|
|
|
),
|
|
|
|
|
AppText(invoiceNO ?? "", fontSize: 12)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
if (branch != null)
|
|
|
|
|
Row(
|
|
|
|
|
children: [
|
|
|
|
|
AppText(
|
|
|
|
|
'Branch: ',
|
|
|
|
|
fontSize: SizeConfig.getTextMultiplierBasedOnWidth() * 3,
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
color: Color(0xFF575757),
|
|
|
|
|
if (branch != null)
|
|
|
|
|
HeaderRow(
|
|
|
|
|
label: 'Branch: ',
|
|
|
|
|
value: branch ?? '',
|
|
|
|
|
),
|
|
|
|
|
AppText(branch ?? '', fontSize: 12)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
if (clinic != null)
|
|
|
|
|
Row(
|
|
|
|
|
children: [
|
|
|
|
|
AppText(
|
|
|
|
|
'Clinic: ',
|
|
|
|
|
fontSize: SizeConfig.getTextMultiplierBasedOnWidth() * 3,
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
color: Color(0xFF575757),
|
|
|
|
|
if (clinic != null)
|
|
|
|
|
HeaderRow(
|
|
|
|
|
label: 'Clinic: ',
|
|
|
|
|
value: clinic ?? '',
|
|
|
|
|
),
|
|
|
|
|
AppText(clinic ?? '', fontSize: 12)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
if (isMedicalFile && episode != null)
|
|
|
|
|
Row(
|
|
|
|
|
children: [
|
|
|
|
|
AppText(
|
|
|
|
|
'Episode: ',
|
|
|
|
|
fontSize: SizeConfig.getTextMultiplierBasedOnWidth() * 3,
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
color: Color(0xFF575757),
|
|
|
|
|
if (isMedicalFile && episode != null)
|
|
|
|
|
HeaderRow(
|
|
|
|
|
label: 'Episode: ',
|
|
|
|
|
value: episode ?? '',
|
|
|
|
|
),
|
|
|
|
|
AppText(episode ?? '', fontSize: 12)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
if (isMedicalFile && visitDate != null)
|
|
|
|
|
Row(
|
|
|
|
|
children: [
|
|
|
|
|
AppText(
|
|
|
|
|
'Visit Date: ',
|
|
|
|
|
fontSize: SizeConfig.getTextMultiplierBasedOnWidth() * 3,
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
color: Color(0xFF575757),
|
|
|
|
|
if (isMedicalFile && visitDate != null)
|
|
|
|
|
HeaderRow(
|
|
|
|
|
label: 'Visit Date: ',
|
|
|
|
|
value: visitDate ?? '',
|
|
|
|
|
),
|
|
|
|
|
AppText(visitDate ?? '', fontSize: 12)
|
|
|
|
|
],
|
|
|
|
|
if (!isMedicalFile)
|
|
|
|
|
HeaderRow(
|
|
|
|
|
label: !isPrescriptions
|
|
|
|
|
? 'Result Date:'
|
|
|
|
|
: 'Prescriptions Date ',
|
|
|
|
|
value:
|
|
|
|
|
'${AppDateUtils.getDayMonthYearDateFormatted(appointmentDate, isArabic: projectViewModel.isArabic)}',
|
|
|
|
|
),
|
|
|
|
|
if (!isMedicalFile)
|
|
|
|
|
Row(
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
AppText(
|
|
|
|
|
!isPrescriptions ? 'Result Date:' : 'Prescriptions Date ',
|
|
|
|
|
fontSize: SizeConfig.getTextMultiplierBasedOnWidth() * 3,
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
color: Color(0xFF575757),
|
|
|
|
|
),
|
|
|
|
|
AppText(
|
|
|
|
|
'${AppDateUtils.getDayMonthYearDateFormatted(appointmentDate, isArabic: projectViewModel.isArabic)}',
|
|
|
|
|
fontSize: SizeConfig.getTextMultiplierBasedOnWidth() * 3.5,
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
)
|
|
|
|
|
]),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
@ -518,6 +407,39 @@ class PatientProfileAppBar extends StatelessWidget with PreferredSizeWidget {
|
|
|
|
|
? 137
|
|
|
|
|
: SizeConfig.isHeightShort
|
|
|
|
|
? 190
|
|
|
|
|
: SizeConfig.heightMultiplier * (SizeConfig.isWidthLarge ? 25 : 20)
|
|
|
|
|
: SizeConfig.heightMultiplier *
|
|
|
|
|
(SizeConfig.isWidthLarge ? 25 : 20)
|
|
|
|
|
: height);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
class HeaderRow extends StatelessWidget {
|
|
|
|
|
final String label;
|
|
|
|
|
final String value;
|
|
|
|
|
|
|
|
|
|
const HeaderRow({Key key, this.label, this.value}) : super(key: key);
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
return Row(
|
|
|
|
|
children: [
|
|
|
|
|
AppText(
|
|
|
|
|
label,
|
|
|
|
|
isCopyable: true,
|
|
|
|
|
fontSize: SizeConfig.getTextMultiplierBasedOnWidth() * 3,
|
|
|
|
|
color: Color(0xFF575757),
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
width: 1,
|
|
|
|
|
),
|
|
|
|
|
AppText(
|
|
|
|
|
value,
|
|
|
|
|
fontSize: SizeConfig.getTextMultiplierBasedOnWidth() * 3.5,
|
|
|
|
|
color: Color(0xFF2E303A),
|
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
|
isCopyable: true,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|