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

Not able to scroll #239

Closed
Mohammad-taqi1212 opened this issue Dec 11, 2022 · 1 comment
Closed

Not able to scroll #239

Mohammad-taqi1212 opened this issue Dec 11, 2022 · 1 comment

Comments

@Mohammad-taqi1212
Copy link

Mohammad-taqi1212 commented Dec 11, 2022

I applied this package but unable to scroll this listview. its showing first page only. Please help me to solve this issue. following are my code excample

Expanded(
                        child: FutureBuilder<UserPost>(
                          future: getUserPost(),
                          builder: (context, snapshot) {
                            if (snapshot.hasData) {
                              return ListView.builder(
itemCount: snapshot.data!.data!.length,
                                  itemBuilder: (context, i) {
return Padding(
                                        padding: EdgeInsets.only(left: 5, right: 5),
                                        child: PagedListView<int,dynamic>(
                                          shrinkWrap: true,
                                          pagingController: _pagingController,
                                          builderDelegate: PagedChildBuilderDelegate<dynamic>(
                                            itemBuilder: (context,item,index) =>
                                          Card()
)
}
)
@Mohammad-taqi1212 Mohammad-taqi1212 changed the title Not able to scroll Not able to scroll Dec 11, 2022
@clragon
Copy link
Collaborator

clragon commented Mar 2, 2023

your pagination is not working correctly because of shrinkWrap: true, which instructs it to build all items immediately.
you should avoid shrinkwrapping your scrollviews.

@EdsonBueno EdsonBueno closed this as not planned Won't fix, can't repro, duplicate, stale Mar 2, 2023
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