|
|
|
|
@ -58,8 +58,8 @@ class _DoctorReplyScreenState extends State<DoctorReplyScreen> {
|
|
|
|
|
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,20 @@ class _DoctorReplyScreenState extends State<DoctorReplyScreen> {
|
|
|
|
|
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);
|
|
|
|
|
// setState(() {
|
|
|
|
|
// pageIndex++;
|
|
|
|
|
// });
|
|
|
|
|
model.getDoctorReply(pageIndex: 2);
|
|
|
|
|
}
|
|
|
|
|
return;
|
|
|
|
|
},
|
|
|
|
|
|