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

Multiple _buildLoadMore. #2

Closed
vjunjoced opened this issue Jan 16, 2020 · 3 comments
Closed

Multiple _buildLoadMore. #2

vjunjoced opened this issue Jan 16, 2020 · 3 comments

Comments

@vjunjoced
Copy link
Contributor

When RefreshIndicator is being used, in each update _buildLoadMore is being added to the end of the list.

I don't know if the problem is with this part of the code

widget.child.slivers.add(
      SliverSafeArea(
        top: false,
        left: false,
        right: false,
        sliver: SliverToBoxAdapter(
          child: _buildLoadMore(widget.status),
        ),
      ),
    );

alt text

@ricardkollcaku
Copy link

same here. when refresh is being used in every click a new status element is added

@BytesZero
Copy link
Owner

https://github.com/yy1300326388/loadany/blob/8a42359ed9c6d906ae44d46f0df3bd3a80d743a1/example/lib/main.dart#L42-L46

Here if (status == LoadStatus.normal) is very critical, I do n’t think you will operate two refreshes at the same time.

@BytesZero
Copy link
Owner

@vjunjoced @ricardkollcaku A new version 0.1.3 has been released, you can try it, if you have any other findings, please feel free to give me feedback.

Thanks @vjunjoced for PR

loadany 0.1.3

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

3 participants