|
|
|
|
@ -44,30 +44,27 @@ class PrescriptionItemsPage extends StatelessWidget {
|
|
|
|
|
profileUrl: prescriptions!.doctorImageURL!,
|
|
|
|
|
isAppointmentHeader: true,
|
|
|
|
|
),
|
|
|
|
|
body: SingleChildScrollView(
|
|
|
|
|
child: Container(
|
|
|
|
|
height: MediaQuery.of(context).size.height * .9,
|
|
|
|
|
child: Column(
|
|
|
|
|
children: [
|
|
|
|
|
ListView.builder(
|
|
|
|
|
scrollDirection: Axis.vertical,
|
|
|
|
|
physics: NeverScrollableScrollPhysics(),
|
|
|
|
|
shrinkWrap: true,
|
|
|
|
|
itemCount: model.prescriptionReportEnhList.length,
|
|
|
|
|
itemBuilder: (context, index) => PrescriptionItemsWidget(
|
|
|
|
|
frequency: model.prescriptionReportEnhList[index].frequency,
|
|
|
|
|
itemDescription: model.prescriptionReportEnhList[index].itemDescription,
|
|
|
|
|
days: model.prescriptionReportEnhList[index].days,
|
|
|
|
|
route: model.prescriptionReportEnhList[index].route,
|
|
|
|
|
dailyDoses: model.prescriptionReportEnhList[index].doseDailyQuantity,
|
|
|
|
|
imageSRCUrl: model.prescriptionReportEnhList[index].imageSRCUrl,
|
|
|
|
|
remarks: model.prescriptionReportEnhList[index].remarks,
|
|
|
|
|
prescriptionViewModel: model,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
// Use a Column with Expanded ListView to give the list a bounded height
|
|
|
|
|
// and avoid RenderFlex overflow from nested scrolling widgets.
|
|
|
|
|
body: Column(
|
|
|
|
|
children: [
|
|
|
|
|
Expanded(
|
|
|
|
|
child: ListView.builder(
|
|
|
|
|
padding: EdgeInsets.zero,
|
|
|
|
|
itemCount: model.prescriptionReportEnhList.length,
|
|
|
|
|
itemBuilder: (context, index) => PrescriptionItemsWidget(
|
|
|
|
|
frequency: model.prescriptionReportEnhList[index].frequency,
|
|
|
|
|
itemDescription: model.prescriptionReportEnhList[index].itemDescription,
|
|
|
|
|
days: model.prescriptionReportEnhList[index].days,
|
|
|
|
|
route: model.prescriptionReportEnhList[index].route,
|
|
|
|
|
dailyDoses: model.prescriptionReportEnhList[index].doseDailyQuantity,
|
|
|
|
|
imageSRCUrl: model.prescriptionReportEnhList[index].imageSRCUrl,
|
|
|
|
|
remarks: model.prescriptionReportEnhList[index].remarks,
|
|
|
|
|
prescriptionViewModel: model,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
|