|
|
|
@ -19,7 +19,13 @@ class RadiologyDetailsPage extends StatelessWidget {
|
|
|
|
|
final PatiantInformtion patient;
|
|
|
|
|
final String patientType;
|
|
|
|
|
final String arrivalType;
|
|
|
|
|
RadiologyDetailsPage({Key key, this.finalRadiology, this.patient, this.patientType, this.arrivalType});
|
|
|
|
|
|
|
|
|
|
RadiologyDetailsPage(
|
|
|
|
|
{Key key,
|
|
|
|
|
this.finalRadiology,
|
|
|
|
|
this.patient,
|
|
|
|
|
this.patientType,
|
|
|
|
|
this.arrivalType});
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
@ -30,66 +36,73 @@ class RadiologyDetailsPage extends StatelessWidget {
|
|
|
|
|
lineItem: finalRadiology.invoiceLineItemNo,
|
|
|
|
|
invoiceNo: finalRadiology.invoiceNo),
|
|
|
|
|
builder: (_, model, widget) => AppScaffold(
|
|
|
|
|
appBar: PatientProfileHeaderWhitAppointmentAppBar(
|
|
|
|
|
patient: patient,
|
|
|
|
|
patientType: patientType??"0",
|
|
|
|
|
arrivalType: arrivalType??"0",
|
|
|
|
|
orderNo: finalRadiology.orderNo.toString(),
|
|
|
|
|
appointmentDate:finalRadiology.orderDate,
|
|
|
|
|
doctorName: finalRadiology.doctorName,
|
|
|
|
|
profileUrl: finalRadiology.doctorImageURL,
|
|
|
|
|
invoiceNO: finalRadiology.invoiceNo.toString(),
|
|
|
|
|
),
|
|
|
|
|
isShowAppBar: true,
|
|
|
|
|
baseViewModel: model,
|
|
|
|
|
body: SingleChildScrollView(
|
|
|
|
|
child: Column(
|
|
|
|
|
mainAxisSize: MainAxisSize.max,
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
Container(
|
|
|
|
|
margin: EdgeInsets.all(8),
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
borderRadius: BorderRadius.circular(12),
|
|
|
|
|
),
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
SizedBox(height: 5,),
|
|
|
|
|
Texts(TranslationBase.of(context).generalResult),
|
|
|
|
|
SizedBox(height: 5,),
|
|
|
|
|
Padding(
|
|
|
|
|
padding: const EdgeInsets.all(8.0),
|
|
|
|
|
child: Texts(
|
|
|
|
|
'${finalRadiology.reportData.trim()}',
|
|
|
|
|
textAlign: TextAlign.start,
|
|
|
|
|
fontSize: 17,
|
|
|
|
|
color: Colors.grey,
|
|
|
|
|
),
|
|
|
|
|
appBar: PatientProfileHeaderWhitAppointmentAppBar(
|
|
|
|
|
patient: patient,
|
|
|
|
|
patientType: patientType ?? "0",
|
|
|
|
|
arrivalType: arrivalType ?? "0",
|
|
|
|
|
orderNo: finalRadiology.orderNo.toString(),
|
|
|
|
|
appointmentDate: finalRadiology.orderDate,
|
|
|
|
|
doctorName: finalRadiology.doctorName,
|
|
|
|
|
profileUrl: finalRadiology.doctorImageURL,
|
|
|
|
|
invoiceNO: finalRadiology.invoiceNo.toString(),
|
|
|
|
|
),
|
|
|
|
|
isShowAppBar: true,
|
|
|
|
|
baseViewModel: model,
|
|
|
|
|
body: SingleChildScrollView(
|
|
|
|
|
child: Column(
|
|
|
|
|
mainAxisSize: MainAxisSize.max,
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
Container(
|
|
|
|
|
margin: EdgeInsets.all(8),
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
borderRadius: BorderRadius.circular(12),
|
|
|
|
|
),
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 5,
|
|
|
|
|
),
|
|
|
|
|
Texts(TranslationBase.of(context).generalResult),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 5,
|
|
|
|
|
),
|
|
|
|
|
Padding(
|
|
|
|
|
padding: const EdgeInsets.all(8.0),
|
|
|
|
|
child: Texts(
|
|
|
|
|
'${finalRadiology.reportData.trim()}',
|
|
|
|
|
textAlign: TextAlign.start,
|
|
|
|
|
fontSize: 17,
|
|
|
|
|
color: Colors.grey,
|
|
|
|
|
),
|
|
|
|
|
SizedBox(height: 25,),
|
|
|
|
|
if(model.radImageURL.isNotEmpty)
|
|
|
|
|
Center(
|
|
|
|
|
child: Container(
|
|
|
|
|
width: MediaQuery.of(context).size.width * 0.8,
|
|
|
|
|
child: Button(
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 100,
|
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
color: Colors.red,
|
|
|
|
|
onTap: () {
|
|
|
|
|
launch(model.radImageURL);
|
|
|
|
|
},
|
|
|
|
|
title: TranslationBase.of(context).openRad,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
bottomSheet: model.radImageURL.isNotEmpty ?Container(
|
|
|
|
|
width: double.maxFinite,
|
|
|
|
|
height: 100,
|
|
|
|
|
child: Container(
|
|
|
|
|
margin: EdgeInsets.only(left: 35,right: 35,top: 12,bottom: 12),
|
|
|
|
|
child: Button(
|
|
|
|
|
color: Colors.red,
|
|
|
|
|
onTap: () {
|
|
|
|
|
launch(model.radImageURL);
|
|
|
|
|
},
|
|
|
|
|
title: TranslationBase.of(context).openRad,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
):null,
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|