|
|
|
@ -162,9 +162,13 @@ class PrescriptionsPage extends StatelessWidget {
|
|
|
|
// height: 12,
|
|
|
|
// height: 12,
|
|
|
|
// ),
|
|
|
|
// ),
|
|
|
|
|
|
|
|
|
|
|
|
...List.generate(
|
|
|
|
ListView.builder(
|
|
|
|
model.medicationForInPatient.length,
|
|
|
|
scrollDirection: Axis.vertical,
|
|
|
|
(index) => InkWell(
|
|
|
|
shrinkWrap: true,
|
|
|
|
|
|
|
|
itemCount: model.medicationForInPatient.length,
|
|
|
|
|
|
|
|
itemBuilder: (context, index) {
|
|
|
|
|
|
|
|
//model.medicationForInPatient.length,
|
|
|
|
|
|
|
|
return InkWell(
|
|
|
|
onTap: () => Navigator.push(
|
|
|
|
onTap: () => Navigator.push(
|
|
|
|
context,
|
|
|
|
context,
|
|
|
|
FadePage(
|
|
|
|
FadePage(
|
|
|
|
@ -193,7 +197,8 @@ class PrescriptionsPage extends StatelessWidget {
|
|
|
|
model.medicationForInPatient[index].prescriptionDatetime,
|
|
|
|
model.medicationForInPatient[index].prescriptionDatetime,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
createdBy: model.medicationForInPatient[index].createdBy.toString(),
|
|
|
|
createdBy: model.medicationForInPatient[index].createdBy.toString(),
|
|
|
|
))),
|
|
|
|
));
|
|
|
|
|
|
|
|
}),
|
|
|
|
if (model.medicationForInPatient.length == 0)
|
|
|
|
if (model.medicationForInPatient.length == 0)
|
|
|
|
Center(
|
|
|
|
Center(
|
|
|
|
child: Column(
|
|
|
|
child: Column(
|
|
|
|
|