Fix prescription item

merge-requests/665/head
Mohammad Aljammal 5 years ago
parent 00d6a3cead
commit 06706ad9a6

@ -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,
),

@ -8,6 +8,7 @@ import 'package:doctor_app_flutter/widgets/patients/profile/patient_profile_head
import 'package:doctor_app_flutter/widgets/shared/app_scaffold_widget.dart';
import 'package:doctor_app_flutter/widgets/shared/app_texts_widget.dart';
import 'package:doctor_app_flutter/widgets/shared/dialogs/ShowImageDialog.dart';
import 'package:eva_icons_flutter/eva_icons_flutter.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
@ -169,13 +170,21 @@ class PrescriptionItemsPage extends StatelessWidget {
)
);
},
child: Padding(
padding: const EdgeInsets.all(8.0),
child: Image.network(
model.prescriptionReportEnhList[index].imageSRCUrl,
fit: BoxFit.cover,
child: Stack(
children: [
Padding(
padding: const EdgeInsets.all(8.0),
child: Image.network(
model.prescriptionReportEnhList[index].imageSRCUrl,
fit: BoxFit.cover,
),
),
),
Positioned(
top: 10,
right: 10,
child: Icon(EvaIcons.search,color: Colors.grey,size: 35,))
],
),
),
),

Loading…
Cancel
Save