|
|
|
@ -15,8 +15,8 @@ import 'package:provider/provider.dart';
|
|
|
|
|
|
|
|
|
|
import 'large_avatar.dart';
|
|
|
|
|
|
|
|
|
|
class PatientProfileHeaderWhitAppointmentAppBar extends StatelessWidget with PreferredSizeWidget {
|
|
|
|
|
|
|
|
|
|
class PatientProfileHeaderWhitAppointmentAppBar extends StatelessWidget
|
|
|
|
|
with PreferredSizeWidget {
|
|
|
|
|
final PatiantInformtion patient;
|
|
|
|
|
final String patientType;
|
|
|
|
|
final String arrivalType;
|
|
|
|
@ -27,6 +27,9 @@ class PatientProfileHeaderWhitAppointmentAppBar extends StatelessWidget with Pre
|
|
|
|
|
final String invoiceNO;
|
|
|
|
|
final String orderNo;
|
|
|
|
|
final bool isPrescriptions;
|
|
|
|
|
final bool isMedicalFile;
|
|
|
|
|
final String episode;
|
|
|
|
|
final String vistDate;
|
|
|
|
|
|
|
|
|
|
final String clinic;
|
|
|
|
|
PatientProfileHeaderWhitAppointmentAppBar(
|
|
|
|
@ -38,7 +41,12 @@ class PatientProfileHeaderWhitAppointmentAppBar extends StatelessWidget with Pre
|
|
|
|
|
this.appointmentDate,
|
|
|
|
|
this.profileUrl,
|
|
|
|
|
this.invoiceNO,
|
|
|
|
|
this.orderNo, this.isPrescriptions = false, this.clinic});
|
|
|
|
|
this.orderNo,
|
|
|
|
|
this.isPrescriptions = false,
|
|
|
|
|
this.clinic,
|
|
|
|
|
this.isMedicalFile = false,
|
|
|
|
|
this.episode,
|
|
|
|
|
this.vistDate});
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
@ -51,8 +59,7 @@ class PatientProfileHeaderWhitAppointmentAppBar extends StatelessWidget with Pre
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return Container(
|
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
|
left: 0, right: 5, bottom: 5, top: 5),
|
|
|
|
|
padding: EdgeInsets.only(left: 0, right: 5, bottom: 5, top: 5),
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
),
|
|
|
|
@ -73,12 +80,12 @@ class PatientProfileHeaderWhitAppointmentAppBar extends StatelessWidget with Pre
|
|
|
|
|
),
|
|
|
|
|
Expanded(
|
|
|
|
|
child: AppText(
|
|
|
|
|
patient.firstName != null ?
|
|
|
|
|
(Helpers.capitalize(patient.firstName) +
|
|
|
|
|
" " +
|
|
|
|
|
Helpers.capitalize(
|
|
|
|
|
patient.lastName)) : Helpers.capitalize(patient.patientDetails.fullName),
|
|
|
|
|
fontSize: SizeConfig.textMultiplier *2.2,
|
|
|
|
|
patient.firstName != null
|
|
|
|
|
? (Helpers.capitalize(patient.firstName) +
|
|
|
|
|
" " +
|
|
|
|
|
Helpers.capitalize(patient.lastName))
|
|
|
|
|
: Helpers.capitalize(patient.patientDetails.fullName),
|
|
|
|
|
fontSize: SizeConfig.textMultiplier * 2.2,
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
backGroundcolor: Colors.white,
|
|
|
|
|
fontFamily: 'Poppins',
|
|
|
|
@ -86,13 +93,13 @@ class PatientProfileHeaderWhitAppointmentAppBar extends StatelessWidget with Pre
|
|
|
|
|
),
|
|
|
|
|
gender == 1
|
|
|
|
|
? Icon(
|
|
|
|
|
DoctorApp.male_2,
|
|
|
|
|
color: Colors.blue,
|
|
|
|
|
)
|
|
|
|
|
DoctorApp.male_2,
|
|
|
|
|
color: Colors.blue,
|
|
|
|
|
)
|
|
|
|
|
: Icon(
|
|
|
|
|
DoctorApp.female_1,
|
|
|
|
|
color: Colors.pink,
|
|
|
|
|
),
|
|
|
|
|
DoctorApp.female_1,
|
|
|
|
|
color: Colors.pink,
|
|
|
|
|
),
|
|
|
|
|
]),
|
|
|
|
|
),
|
|
|
|
|
Row(children: [
|
|
|
|
@ -114,119 +121,84 @@ class PatientProfileHeaderWhitAppointmentAppBar extends StatelessWidget with Pre
|
|
|
|
|
),
|
|
|
|
|
Expanded(
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment:
|
|
|
|
|
CrossAxisAlignment.start,
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
SERVICES_PATIANT2[
|
|
|
|
|
int.parse(patientType)] ==
|
|
|
|
|
"patientArrivalList"
|
|
|
|
|
SERVICES_PATIANT2[int.parse(patientType)] ==
|
|
|
|
|
"patientArrivalList"
|
|
|
|
|
? Container(
|
|
|
|
|
child: Row(
|
|
|
|
|
mainAxisAlignment:
|
|
|
|
|
MainAxisAlignment
|
|
|
|
|
.spaceBetween,
|
|
|
|
|
children: [
|
|
|
|
|
patient.patientStatusType ==
|
|
|
|
|
43
|
|
|
|
|
? AppText(
|
|
|
|
|
TranslationBase.of(
|
|
|
|
|
context)
|
|
|
|
|
.arrivedP,
|
|
|
|
|
color: Colors.green,
|
|
|
|
|
fontWeight:
|
|
|
|
|
FontWeight.bold,
|
|
|
|
|
fontFamily:
|
|
|
|
|
'Poppins',
|
|
|
|
|
fontSize: 12,
|
|
|
|
|
)
|
|
|
|
|
: AppText(
|
|
|
|
|
TranslationBase.of(
|
|
|
|
|
context)
|
|
|
|
|
.notArrived,
|
|
|
|
|
color:
|
|
|
|
|
Colors.red[800],
|
|
|
|
|
fontWeight:
|
|
|
|
|
FontWeight.bold,
|
|
|
|
|
fontFamily:
|
|
|
|
|
'Poppins',
|
|
|
|
|
fontSize: 12,
|
|
|
|
|
),
|
|
|
|
|
arrivalType == '1' || patient.arrivedOn == null
|
|
|
|
|
? AppText(
|
|
|
|
|
patient.startTime !=
|
|
|
|
|
null
|
|
|
|
|
? patient
|
|
|
|
|
.startTime
|
|
|
|
|
: '',
|
|
|
|
|
fontFamily:
|
|
|
|
|
'Poppins',
|
|
|
|
|
fontWeight:
|
|
|
|
|
FontWeight.w600,
|
|
|
|
|
)
|
|
|
|
|
: AppText(
|
|
|
|
|
DateUtils.convertStringToDateFormat(
|
|
|
|
|
patient
|
|
|
|
|
.arrivedOn,
|
|
|
|
|
'MM-dd-yyyy HH:mm'),
|
|
|
|
|
fontFamily:
|
|
|
|
|
'Poppins',
|
|
|
|
|
fontWeight:
|
|
|
|
|
FontWeight.w600,
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
))
|
|
|
|
|
child: Row(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
|
children: [
|
|
|
|
|
patient.patientStatusType == 43
|
|
|
|
|
? AppText(
|
|
|
|
|
TranslationBase.of(context).arrivedP,
|
|
|
|
|
color: Colors.green,
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
fontFamily: 'Poppins',
|
|
|
|
|
fontSize: 12,
|
|
|
|
|
)
|
|
|
|
|
: AppText(
|
|
|
|
|
TranslationBase.of(context).notArrived,
|
|
|
|
|
color: Colors.red[800],
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
fontFamily: 'Poppins',
|
|
|
|
|
fontSize: 12,
|
|
|
|
|
),
|
|
|
|
|
arrivalType == '1' || patient.arrivedOn == null
|
|
|
|
|
? AppText(
|
|
|
|
|
patient.startTime != null
|
|
|
|
|
? patient.startTime
|
|
|
|
|
: '',
|
|
|
|
|
fontFamily: 'Poppins',
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
)
|
|
|
|
|
: AppText(
|
|
|
|
|
DateUtils.convertStringToDateFormat(
|
|
|
|
|
patient.arrivedOn,
|
|
|
|
|
'MM-dd-yyyy HH:mm'),
|
|
|
|
|
fontFamily: 'Poppins',
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
))
|
|
|
|
|
: SizedBox(),
|
|
|
|
|
if (SERVICES_PATIANT2[
|
|
|
|
|
int.parse(patientType)] ==
|
|
|
|
|
if (SERVICES_PATIANT2[int.parse(patientType)] ==
|
|
|
|
|
"List_MyOutPatient")
|
|
|
|
|
Container(
|
|
|
|
|
child: Row(
|
|
|
|
|
mainAxisAlignment:
|
|
|
|
|
MainAxisAlignment.start,
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.start,
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
AppText(
|
|
|
|
|
TranslationBase.of(context)
|
|
|
|
|
.appointmentDate +
|
|
|
|
|
TranslationBase.of(context).appointmentDate +
|
|
|
|
|
" : ",
|
|
|
|
|
fontSize: 14,
|
|
|
|
|
),
|
|
|
|
|
patient.startTime != null
|
|
|
|
|
? Container(
|
|
|
|
|
height: 15,
|
|
|
|
|
width: 60,
|
|
|
|
|
decoration:
|
|
|
|
|
BoxDecoration(
|
|
|
|
|
borderRadius:
|
|
|
|
|
BorderRadius
|
|
|
|
|
.circular(
|
|
|
|
|
25),
|
|
|
|
|
color: HexColor(
|
|
|
|
|
"#20A169"),
|
|
|
|
|
),
|
|
|
|
|
child: AppText(
|
|
|
|
|
patient.startTime,
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
fontSize: 1.5 *
|
|
|
|
|
SizeConfig
|
|
|
|
|
.textMultiplier,
|
|
|
|
|
textAlign: TextAlign
|
|
|
|
|
.center,
|
|
|
|
|
fontWeight:
|
|
|
|
|
FontWeight.bold,
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
height: 15,
|
|
|
|
|
width: 60,
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
borderRadius: BorderRadius.circular(25),
|
|
|
|
|
color: HexColor("#20A169"),
|
|
|
|
|
),
|
|
|
|
|
child: AppText(
|
|
|
|
|
patient.startTime,
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
fontSize: 1.5 * SizeConfig.textMultiplier,
|
|
|
|
|
textAlign: TextAlign.center,
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
: SizedBox(),
|
|
|
|
|
SizedBox(
|
|
|
|
|
width: 3.5,
|
|
|
|
|
),
|
|
|
|
|
Container(
|
|
|
|
|
child: AppText(
|
|
|
|
|
convertDateFormat2(patient.appointmentDate.toString()?? ''),
|
|
|
|
|
fontSize: 1.5 *
|
|
|
|
|
SizeConfig
|
|
|
|
|
.textMultiplier,
|
|
|
|
|
fontWeight:
|
|
|
|
|
FontWeight.bold,
|
|
|
|
|
convertDateFormat2(
|
|
|
|
|
patient.appointmentDate.toString() ?? ''),
|
|
|
|
|
fontSize: 1.5 * SizeConfig.textMultiplier,
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
@ -239,34 +211,23 @@ class PatientProfileHeaderWhitAppointmentAppBar extends StatelessWidget with Pre
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Row(
|
|
|
|
|
mainAxisAlignment:
|
|
|
|
|
MainAxisAlignment.spaceBetween,
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
|
children: [
|
|
|
|
|
RichText(
|
|
|
|
|
text: TextSpan(
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontSize: 1.6 *
|
|
|
|
|
SizeConfig
|
|
|
|
|
.textMultiplier,
|
|
|
|
|
fontSize: 1.6 * SizeConfig.textMultiplier,
|
|
|
|
|
color: Colors.black),
|
|
|
|
|
children: <TextSpan>[
|
|
|
|
|
new TextSpan(
|
|
|
|
|
text:
|
|
|
|
|
TranslationBase.of(
|
|
|
|
|
context)
|
|
|
|
|
.fileNumber,
|
|
|
|
|
text: TranslationBase.of(context).fileNumber,
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontSize: 12,
|
|
|
|
|
fontFamily:
|
|
|
|
|
'Poppins')),
|
|
|
|
|
fontSize: 12, fontFamily: 'Poppins')),
|
|
|
|
|
new TextSpan(
|
|
|
|
|
text: patient.patientId
|
|
|
|
|
.toString(),
|
|
|
|
|
text: patient.patientId.toString(),
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontWeight:
|
|
|
|
|
FontWeight.w700,
|
|
|
|
|
fontFamily:
|
|
|
|
|
'Poppins',
|
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
|
fontFamily: 'Poppins',
|
|
|
|
|
fontSize: 14)),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
@ -274,32 +235,23 @@ class PatientProfileHeaderWhitAppointmentAppBar extends StatelessWidget with Pre
|
|
|
|
|
Row(
|
|
|
|
|
children: [
|
|
|
|
|
AppText(
|
|
|
|
|
patient.nationalityName ??
|
|
|
|
|
patient.nationality,
|
|
|
|
|
patient.nationalityName ?? patient.nationality,
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
fontSize: 12,
|
|
|
|
|
),
|
|
|
|
|
patient.nationality != null
|
|
|
|
|
? ClipRRect(
|
|
|
|
|
borderRadius:
|
|
|
|
|
BorderRadius
|
|
|
|
|
.circular(
|
|
|
|
|
20.0),
|
|
|
|
|
child: Image.network(
|
|
|
|
|
patient.nationalityFlagURL,
|
|
|
|
|
height: 25,
|
|
|
|
|
width: 30,
|
|
|
|
|
errorBuilder:
|
|
|
|
|
(BuildContext
|
|
|
|
|
context,
|
|
|
|
|
Object
|
|
|
|
|
exception,
|
|
|
|
|
StackTrace
|
|
|
|
|
stackTrace) {
|
|
|
|
|
return Text(
|
|
|
|
|
'No Image');
|
|
|
|
|
},
|
|
|
|
|
))
|
|
|
|
|
borderRadius: BorderRadius.circular(20.0),
|
|
|
|
|
child: Image.network(
|
|
|
|
|
patient.nationalityFlagURL,
|
|
|
|
|
height: 25,
|
|
|
|
|
width: 30,
|
|
|
|
|
errorBuilder: (BuildContext context,
|
|
|
|
|
Object exception,
|
|
|
|
|
StackTrace stackTrace) {
|
|
|
|
|
return Text('No Image');
|
|
|
|
|
},
|
|
|
|
|
))
|
|
|
|
|
: SizedBox()
|
|
|
|
|
],
|
|
|
|
|
)
|
|
|
|
@ -309,26 +261,19 @@ class PatientProfileHeaderWhitAppointmentAppBar extends StatelessWidget with Pre
|
|
|
|
|
child: RichText(
|
|
|
|
|
text: new TextSpan(
|
|
|
|
|
style: new TextStyle(
|
|
|
|
|
fontSize: 1.6 *
|
|
|
|
|
SizeConfig.textMultiplier,
|
|
|
|
|
fontSize: 1.6 * SizeConfig.textMultiplier,
|
|
|
|
|
color: Colors.black,
|
|
|
|
|
fontFamily: 'Poppins',
|
|
|
|
|
),
|
|
|
|
|
children: <TextSpan>[
|
|
|
|
|
new TextSpan(
|
|
|
|
|
text: TranslationBase.of(
|
|
|
|
|
context)
|
|
|
|
|
.age +
|
|
|
|
|
" : ",
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontSize: 14)),
|
|
|
|
|
text: TranslationBase.of(context).age + " : ",
|
|
|
|
|
style: TextStyle(fontSize: 14)),
|
|
|
|
|
new TextSpan(
|
|
|
|
|
text:
|
|
|
|
|
"${DateUtils.getAgeByBirthday(patient.patientDetails != null ? patient.patientDetails.dateofBirth : patient.dateofBirth, context)}",
|
|
|
|
|
"${DateUtils.getAgeByBirthday(patient.patientDetails != null ? patient.patientDetails.dateofBirth : patient.dateofBirth, context)}",
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontWeight:
|
|
|
|
|
FontWeight.w700,
|
|
|
|
|
fontSize: 14)),
|
|
|
|
|
fontWeight: FontWeight.w700, fontSize: 14)),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
@ -343,14 +288,16 @@ class PatientProfileHeaderWhitAppointmentAppBar extends StatelessWidget with Pre
|
|
|
|
|
Container(
|
|
|
|
|
width: 30,
|
|
|
|
|
height: 30,
|
|
|
|
|
margin: EdgeInsets.only(left: projectViewModel.isArabic?10:85, right: projectViewModel.isArabic?85:10,top: 5),
|
|
|
|
|
margin: EdgeInsets.only(
|
|
|
|
|
left: projectViewModel.isArabic ? 10 : 85,
|
|
|
|
|
right: projectViewModel.isArabic ? 85 : 10,
|
|
|
|
|
top: 5),
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
shape: BoxShape.rectangle,
|
|
|
|
|
border: Border(
|
|
|
|
|
bottom:BorderSide(color: Colors.grey[400],width: 2.5),
|
|
|
|
|
left: BorderSide(color: Colors.grey[400],width: 2.5),
|
|
|
|
|
)
|
|
|
|
|
),
|
|
|
|
|
shape: BoxShape.rectangle,
|
|
|
|
|
border: Border(
|
|
|
|
|
bottom: BorderSide(color: Colors.grey[400], width: 2.5),
|
|
|
|
|
left: BorderSide(color: Colors.grey[400], width: 2.5),
|
|
|
|
|
)),
|
|
|
|
|
),
|
|
|
|
|
Expanded(
|
|
|
|
|
child: Container(
|
|
|
|
@ -380,79 +327,81 @@ class PatientProfileHeaderWhitAppointmentAppBar extends StatelessWidget with Pre
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
fontSize: 12,
|
|
|
|
|
),
|
|
|
|
|
if (orderNo != null )
|
|
|
|
|
if (orderNo != null && !isPrescriptions)
|
|
|
|
|
Row(
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
Texts(
|
|
|
|
|
'Order No: ',
|
|
|
|
|
color: Colors.grey[800],
|
|
|
|
|
fontSize: 12
|
|
|
|
|
),
|
|
|
|
|
Texts(
|
|
|
|
|
orderNo ?? '',fontSize: 12
|
|
|
|
|
)
|
|
|
|
|
Texts('Order No: ',
|
|
|
|
|
color: Colors.grey[800],
|
|
|
|
|
fontSize: 12),
|
|
|
|
|
Texts(orderNo ?? '', fontSize: 12)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
if (invoiceNO != null )
|
|
|
|
|
if (invoiceNO != null && !isPrescriptions)
|
|
|
|
|
Row(
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
Texts(
|
|
|
|
|
'Invoice: ',
|
|
|
|
|
color: Colors.grey[800],
|
|
|
|
|
fontSize: 12
|
|
|
|
|
),
|
|
|
|
|
Texts(
|
|
|
|
|
invoiceNO,
|
|
|
|
|
fontSize: 12
|
|
|
|
|
)
|
|
|
|
|
Texts('Invoice: ',
|
|
|
|
|
color: Colors.grey[800],
|
|
|
|
|
fontSize: 12),
|
|
|
|
|
Texts(invoiceNO, fontSize: 12)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
if( branch!=null)
|
|
|
|
|
if (branch != null)
|
|
|
|
|
Row(
|
|
|
|
|
children: [
|
|
|
|
|
Texts(
|
|
|
|
|
'Branch: ',
|
|
|
|
|
color: Colors.grey[800],
|
|
|
|
|
fontSize: 12
|
|
|
|
|
),
|
|
|
|
|
Texts(
|
|
|
|
|
branch?? '',
|
|
|
|
|
fontSize: 12
|
|
|
|
|
)
|
|
|
|
|
Texts('Branch: ',
|
|
|
|
|
color: Colors.grey[800],
|
|
|
|
|
fontSize: 12),
|
|
|
|
|
Texts(branch ?? '', fontSize: 12)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
if(clinic!=null)
|
|
|
|
|
if (isPrescriptions)
|
|
|
|
|
if (clinic != null)
|
|
|
|
|
Row(
|
|
|
|
|
children: [
|
|
|
|
|
Texts('Clinic: ',
|
|
|
|
|
color: Colors.grey[800],
|
|
|
|
|
fontSize: 12),
|
|
|
|
|
Texts(clinic ?? '', fontSize: 12)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
if (isMedicalFile && episode != null)
|
|
|
|
|
Row(
|
|
|
|
|
children: [
|
|
|
|
|
Texts(
|
|
|
|
|
'Clinic: ',
|
|
|
|
|
color: Colors.grey[800],
|
|
|
|
|
fontSize: 12
|
|
|
|
|
),
|
|
|
|
|
Texts(
|
|
|
|
|
clinic?? '',
|
|
|
|
|
fontSize: 12
|
|
|
|
|
)
|
|
|
|
|
Texts('Episode: ',
|
|
|
|
|
color: Colors.grey[800],
|
|
|
|
|
fontSize: 12),
|
|
|
|
|
Texts(episode ?? '', fontSize: 12)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
if (isMedicalFile && vistDate != null)
|
|
|
|
|
Row(
|
|
|
|
|
children: [
|
|
|
|
|
Texts('Visit Date: ',
|
|
|
|
|
color: Colors.grey[800],
|
|
|
|
|
fontSize: 12),
|
|
|
|
|
Texts(vistDate ?? '', fontSize: 12)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
Row(
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
Expanded(
|
|
|
|
|
child: Texts(
|
|
|
|
|
!isPrescriptions? 'Result Date: ': 'Prescriptions Date ',
|
|
|
|
|
!isPrescriptions
|
|
|
|
|
? 'Result Date: '
|
|
|
|
|
: 'Prescriptions Date ',
|
|
|
|
|
color: Colors.grey[800],
|
|
|
|
|
fontSize: 12,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Texts(
|
|
|
|
|
'${DateUtils.getDayMonthYearDateFormatted(appointmentDate, isArabic: projectViewModel.isArabic)}',fontSize: 14,
|
|
|
|
|
'${DateUtils.getDayMonthYearDateFormatted(appointmentDate, isArabic: projectViewModel.isArabic)}',
|
|
|
|
|
fontSize: 14,
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
)
|
|
|
|
|
]),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
@ -466,7 +415,7 @@ class PatientProfileHeaderWhitAppointmentAppBar extends StatelessWidget with Pre
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
convertDateFormat2(String str) {
|
|
|
|
|
String newDate ="";
|
|
|
|
|
String newDate = "";
|
|
|
|
|
const start = "/Date(";
|
|
|
|
|
const end = "+0300)";
|
|
|
|
|
|
|
|
|
@ -477,10 +426,10 @@ class PatientProfileHeaderWhitAppointmentAppBar extends StatelessWidget with Pre
|
|
|
|
|
var date = new DateTime.fromMillisecondsSinceEpoch(
|
|
|
|
|
int.parse(str.substring(startIndex + start.length, endIndex)));
|
|
|
|
|
newDate = date.year.toString() +
|
|
|
|
|
"/" +
|
|
|
|
|
date.month.toString().padLeft(2, '0') +
|
|
|
|
|
"/" +
|
|
|
|
|
date.day.toString().padLeft(2, '0');
|
|
|
|
|
"/" +
|
|
|
|
|
date.month.toString().padLeft(2, '0') +
|
|
|
|
|
"/" +
|
|
|
|
|
date.day.toString().padLeft(2, '0');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return newDate.toString();
|
|
|
|
@ -504,5 +453,5 @@ class PatientProfileHeaderWhitAppointmentAppBar extends StatelessWidget with Pre
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
Size get preferredSize => Size(double.maxFinite,290);
|
|
|
|
|
Size get preferredSize => Size(double.maxFinite, 290);
|
|
|
|
|
}
|
|
|
|
|