diff --git a/lib/screens/doctor/doctor_reply_screen.dart b/lib/screens/doctor/doctor_reply_screen.dart index 9047bb2d..e56360e7 100644 --- a/lib/screens/doctor/doctor_reply_screen.dart +++ b/lib/screens/doctor/doctor_reply_screen.dart @@ -58,8 +58,8 @@ class _DoctorReplyScreenState extends State { child: NotificationListener( child: ListView.builder( scrollDirection: Axis.vertical, + itemCount: model.listDoctorWorkingHoursTable.length, shrinkWrap: true, - itemBuilder: (BuildContext ctxt, int index) { return Column( children: [ @@ -83,20 +83,19 @@ class _DoctorReplyScreenState extends State { reply: model .listDoctorWorkingHoursTable[index]), ), - if(model.state == ViewState.BusyLocal &&index ==model.listDoctorWorkingHoursTable.length-1) + if(model.state == ViewState.BusyLocal && index == model.listDoctorWorkingHoursTable.length-1) DrAppCircularProgressIndeicator() ], ); }), - onNotification: (t) { + onNotification: (t) { if (t is ScrollEndNotification && model.state != ViewState.BusyLocal) { - print("${model.state}"); setState(() { pageIndex++; }); - model.getDoctorReply(pageIndex: pageIndex); + model.getDoctorReply(pageIndex: pageIndex); } return; },