|
|
|
|
@ -11,13 +11,11 @@ class ListOfAllInPatient extends StatelessWidget {
|
|
|
|
|
@required this.isAllClinic,
|
|
|
|
|
@required this.hasQuery,
|
|
|
|
|
this.patientSearchViewModel,
|
|
|
|
|
this.scrollController,
|
|
|
|
|
}) : super(key: key);
|
|
|
|
|
|
|
|
|
|
final bool isAllClinic;
|
|
|
|
|
final bool hasQuery;
|
|
|
|
|
|
|
|
|
|
final ScrollController scrollController;
|
|
|
|
|
|
|
|
|
|
final PatientSearchViewModel patientSearchViewModel;
|
|
|
|
|
|
|
|
|
|
@ -28,16 +26,13 @@ class ListOfAllInPatient extends StatelessWidget {
|
|
|
|
|
margin: EdgeInsets.symmetric(horizontal: 16.0),
|
|
|
|
|
child: patientSearchViewModel.filteredInPatientItems.length == 0
|
|
|
|
|
? NoData()
|
|
|
|
|
: NotificationListener<ScrollEndNotification>(
|
|
|
|
|
: NotificationListener(
|
|
|
|
|
child: ListView.builder(
|
|
|
|
|
controller: scrollController,
|
|
|
|
|
itemCount:
|
|
|
|
|
patientSearchViewModel.filteredInPatientItems.length,
|
|
|
|
|
scrollDirection: Axis.vertical,
|
|
|
|
|
// physics: ScrollPhysics(),
|
|
|
|
|
shrinkWrap: true,
|
|
|
|
|
itemBuilder: (context, index) {
|
|
|
|
|
// if (!isMyInPatient)
|
|
|
|
|
return PatientCard(
|
|
|
|
|
patientInfo: patientSearchViewModel
|
|
|
|
|
.filteredInPatientItems[index],
|
|
|
|
|
|