From bf12203e816fceccb150164a8b8154ab61d1bbd3 Mon Sep 17 00:00:00 2001 From: Elham Rababh Date: Wed, 25 Aug 2021 11:27:39 +0300 Subject: [PATCH] fix error happen while scrolling --- lib/screens/doctor/doctor_reply_screen.dart | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/screens/doctor/doctor_reply_screen.dart b/lib/screens/doctor/doctor_reply_screen.dart index fa5ae47d..2d74a2cc 100644 --- a/lib/screens/doctor/doctor_reply_screen.dart +++ b/lib/screens/doctor/doctor_reply_screen.dart @@ -92,10 +92,9 @@ class _DoctorReplyScreenState extends State { onNotification: (t) { if (t is ScrollEndNotification && model.state != ViewState.BusyLocal) { - print("${model.state}"); - // setState(() { - // pageIndex++; - // }); + setState(() { + pageIndex++; + }); model.getDoctorReply(pageIndex: 2); } return;