|
|
|
|
@ -50,160 +50,6 @@ class PrescriptionItemsInPatientPage extends StatelessWidget {
|
|
|
|
|
child: Container(
|
|
|
|
|
child: Column(
|
|
|
|
|
children: [
|
|
|
|
|
// if (!prescriptions.isInOutPatient)
|
|
|
|
|
// ...List.generate(
|
|
|
|
|
// model.prescriptionReportList.length,
|
|
|
|
|
// (index) => Container(
|
|
|
|
|
// decoration: BoxDecoration(
|
|
|
|
|
// borderRadius: BorderRadius.circular(12),
|
|
|
|
|
// color: Colors.white,
|
|
|
|
|
// ),
|
|
|
|
|
// margin: EdgeInsets.all(12),
|
|
|
|
|
// child: Padding(
|
|
|
|
|
// padding: const EdgeInsets.all(8.0),
|
|
|
|
|
// child: Column(
|
|
|
|
|
// crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
// children: [
|
|
|
|
|
// Container(
|
|
|
|
|
// margin:
|
|
|
|
|
// EdgeInsets.only(left: 18, right: 18),
|
|
|
|
|
// child: AppText(
|
|
|
|
|
// model.prescriptionReportList[index]
|
|
|
|
|
// .itemDescription.isNotEmpty
|
|
|
|
|
// ? model
|
|
|
|
|
// .prescriptionReportList[index]
|
|
|
|
|
// .itemDescription
|
|
|
|
|
// : model
|
|
|
|
|
// .prescriptionReportList[index]
|
|
|
|
|
// .itemDescriptionN,
|
|
|
|
|
// bold: true,
|
|
|
|
|
// )),
|
|
|
|
|
// SizedBox(
|
|
|
|
|
// height: 12,
|
|
|
|
|
// ),
|
|
|
|
|
// Row(
|
|
|
|
|
// children: [
|
|
|
|
|
// SizedBox(
|
|
|
|
|
// width: 18,
|
|
|
|
|
// ),
|
|
|
|
|
// Container(
|
|
|
|
|
// decoration: BoxDecoration(
|
|
|
|
|
// shape: BoxShape.circle,
|
|
|
|
|
// border: Border.all(
|
|
|
|
|
// width: 0.5,
|
|
|
|
|
// color: Colors.grey)),
|
|
|
|
|
// height: 55,
|
|
|
|
|
// width: 55,
|
|
|
|
|
// child: InkWell(
|
|
|
|
|
// onTap: () {
|
|
|
|
|
// showDialog(
|
|
|
|
|
// context: context,
|
|
|
|
|
// child: ShowImageDialog(
|
|
|
|
|
// imageUrl: model
|
|
|
|
|
// .prescriptionReportEnhList[
|
|
|
|
|
// index]
|
|
|
|
|
// .imageSRCUrl,
|
|
|
|
|
// ));
|
|
|
|
|
// },
|
|
|
|
|
// child: Padding(
|
|
|
|
|
// padding: const EdgeInsets.all(8.0),
|
|
|
|
|
// child: Image.network(
|
|
|
|
|
// model
|
|
|
|
|
// .prescriptionReportList[index]
|
|
|
|
|
// .imageSRCUrl,
|
|
|
|
|
// fit: BoxFit.cover,
|
|
|
|
|
// ),
|
|
|
|
|
// ),
|
|
|
|
|
// ),
|
|
|
|
|
// ),
|
|
|
|
|
// SizedBox(
|
|
|
|
|
// width: 10,
|
|
|
|
|
// ),
|
|
|
|
|
// Expanded(
|
|
|
|
|
// child: Column(
|
|
|
|
|
// crossAxisAlignment:
|
|
|
|
|
// CrossAxisAlignment.start,
|
|
|
|
|
// children: [
|
|
|
|
|
// Row(
|
|
|
|
|
// children: [
|
|
|
|
|
// AppText(
|
|
|
|
|
// TranslationBase.of(context)
|
|
|
|
|
// .route,
|
|
|
|
|
// color: Colors.grey,
|
|
|
|
|
// ),
|
|
|
|
|
// Expanded(
|
|
|
|
|
// child: AppText(" " +
|
|
|
|
|
// model
|
|
|
|
|
// .prescriptionReportList[
|
|
|
|
|
// index]
|
|
|
|
|
// .routeN)),
|
|
|
|
|
// ],
|
|
|
|
|
// ),
|
|
|
|
|
// Row(
|
|
|
|
|
// children: [
|
|
|
|
|
// AppText(
|
|
|
|
|
// TranslationBase.of(context)
|
|
|
|
|
// .frequency,
|
|
|
|
|
// color: Colors.grey,
|
|
|
|
|
// ),
|
|
|
|
|
// AppText(" " +
|
|
|
|
|
// model
|
|
|
|
|
// .prescriptionReportList[
|
|
|
|
|
// index]
|
|
|
|
|
// .frequencyN ??
|
|
|
|
|
// ''),
|
|
|
|
|
// ],
|
|
|
|
|
// ),
|
|
|
|
|
// Row(
|
|
|
|
|
// children: [
|
|
|
|
|
// AppText(
|
|
|
|
|
// TranslationBase.of(context)
|
|
|
|
|
// .dailyDoses,
|
|
|
|
|
// color: Colors.grey,
|
|
|
|
|
// ),
|
|
|
|
|
// AppText(" " +
|
|
|
|
|
// model
|
|
|
|
|
// .prescriptionReportList[
|
|
|
|
|
// index]
|
|
|
|
|
// .doseDailyQuantity ??
|
|
|
|
|
// ''),
|
|
|
|
|
// ],
|
|
|
|
|
// ),
|
|
|
|
|
// Row(
|
|
|
|
|
// children: [
|
|
|
|
|
// AppText(
|
|
|
|
|
// TranslationBase.of(context)
|
|
|
|
|
// .duration,
|
|
|
|
|
// color: Colors.grey,
|
|
|
|
|
// ),
|
|
|
|
|
// AppText(" " +
|
|
|
|
|
// model
|
|
|
|
|
// .prescriptionReportList[
|
|
|
|
|
// index]
|
|
|
|
|
// .days
|
|
|
|
|
// .toString() ??
|
|
|
|
|
// ''),
|
|
|
|
|
// ],
|
|
|
|
|
// ),
|
|
|
|
|
// SizedBox(
|
|
|
|
|
// height: 12,
|
|
|
|
|
// ),
|
|
|
|
|
// AppText(model
|
|
|
|
|
// .prescriptionReportList[
|
|
|
|
|
// index]
|
|
|
|
|
// .remarks ??
|
|
|
|
|
// ''),
|
|
|
|
|
// ],
|
|
|
|
|
// ),
|
|
|
|
|
// )
|
|
|
|
|
// ],
|
|
|
|
|
// )
|
|
|
|
|
// ],
|
|
|
|
|
// ),
|
|
|
|
|
// ),
|
|
|
|
|
// ))
|
|
|
|
|
// else
|
|
|
|
|
|
|
|
|
|
Container(
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
borderRadius: BorderRadius.circular(12),
|
|
|
|
|
@ -233,34 +79,6 @@ class PrescriptionItemsInPatientPage extends StatelessWidget {
|
|
|
|
|
SizedBox(
|
|
|
|
|
width: 18,
|
|
|
|
|
),
|
|
|
|
|
// Container(
|
|
|
|
|
// decoration: BoxDecoration(
|
|
|
|
|
// shape: BoxShape.circle,
|
|
|
|
|
// border: Border.all(
|
|
|
|
|
// width: 0.5, color: Colors.grey)),
|
|
|
|
|
// height: 55,
|
|
|
|
|
// width: 55,
|
|
|
|
|
// child: InkWell(
|
|
|
|
|
// onTap: () {
|
|
|
|
|
// showDialog(
|
|
|
|
|
// context: context,
|
|
|
|
|
// // child: ShowImageDialog(
|
|
|
|
|
// // imageUrl: model
|
|
|
|
|
// // .inPatientPrescription[index]
|
|
|
|
|
// // .imageSRCUrl,
|
|
|
|
|
// // ),
|
|
|
|
|
// );
|
|
|
|
|
// },
|
|
|
|
|
// child: Padding(
|
|
|
|
|
// padding: const EdgeInsets.all(8.0),
|
|
|
|
|
// // child: Image.network(
|
|
|
|
|
// // model.prescriptionReportEnhList[index]
|
|
|
|
|
// // .imageSRCUrl,
|
|
|
|
|
// // fit: BoxFit.cover,
|
|
|
|
|
// // ),
|
|
|
|
|
// ),
|
|
|
|
|
// ),
|
|
|
|
|
// ),
|
|
|
|
|
SizedBox(
|
|
|
|
|
width: 10,
|
|
|
|
|
),
|
|
|
|
|
|