Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

数据不足时,每次上拉加载都需要往上滚动一下 #588

Closed
jahnli opened this issue Aug 8, 2022 · 9 comments
Closed

数据不足时,每次上拉加载都需要往上滚动一下 #588

jahnli opened this issue Aug 8, 2022 · 9 comments

Comments

@jahnli
Copy link

jahnli commented Aug 8, 2022

   onRefresh: () async {
              controller.updateCcurrentIssuePageIndex(1);
              await controller.getIssueList();
              controller.refreshController.finishRefresh();
              controller.refreshController.resetFooter();
            },
            onLoad: () async {
              if (controller.pdaIssueListData.list!.length < controller.pdaIssueListData.total!) {
                controller.updateCcurrentIssuePageIndex(controller.currentIssuePageIndex + 1);
              }

              await controller.getIssueList();
              controller.refreshController.finishLoad(
                controller.pdaIssueListData.list!.length >= controller.pdaIssueListData.total!
                    ? IndicatorResult.noMore
                    : IndicatorResult.success,
              );
            },
@jahnli
Copy link
Author

jahnli commented Aug 8, 2022

dnplayer_pKW7xCCVp6.mp4

@jahnli jahnli changed the title finishLoad后,无法再次loading 数据不足时,每次上拉加载都需要往上滚动一下才可以 Aug 8, 2022
@jahnli jahnli changed the title 数据不足时,每次上拉加载都需要往上滚动一下才可以 数据不足时,每次上拉加载都需要往上滚动一下 Aug 8, 2022
@jahnli
Copy link
Author

jahnli commented Aug 8, 2022

数据不足时,每次上拉加载都需要往上滚动一下才可以

chrome_cbokfbxm49.mp4

@DaoCaGit
Copy link

我也遇到了这个问题

xuelongqy added a commit that referenced this issue Sep 25, 2022
@cipchk
Copy link

cipchk commented Oct 5, 2022

同样遇到类似的情况 @xuelongqy

@xuelongqy
Copy link
Owner

主分支已经可以了哈,还没发版。如果需要可以直接github方式导入

@xuelongqy
Copy link
Owner

v3.0.4+3 已解决

@LiWenHui96
Copy link

@xuelongqy 你好,v3.0.4+3 使用了 SpringDescription,而 Flutter 2.10.5找不到这个类,无法继续使用了。

@xuelongqy
Copy link
Owner

@xuelongqy 你好,v3.0.4+3 使用了 SpringDescription,而 Flutter 2.10.5找不到这个类,无法继续使用了。

试试v3.0.4+4呢?

@LiWenHui96
Copy link

@xuelongqy 可以正常使用了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants