fix error happen while scrolling

merge-requests/799/head
Elham Rababh 4 years ago
parent 66e33b7085
commit bf12203e81

@ -92,10 +92,9 @@ class _DoctorReplyScreenState extends State<DoctorReplyScreen> {
onNotification: (t) {
if (t is ScrollEndNotification &&
model.state != ViewState.BusyLocal) {
print("${model.state}");
// setState(() {
// pageIndex++;
// });
setState(() {
pageIndex++;
});
model.getDoctorReply(pageIndex: 2);
}
return;

Loading…
Cancel
Save