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

(PagewiseGridView) loadingBuilder shows less than expected #68

Open
abhinavc opened this issue Jul 8, 2019 · 1 comment
Open

(PagewiseGridView) loadingBuilder shows less than expected #68

abhinavc opened this issue Jul 8, 2019 · 1 comment

Comments

@abhinavc
Copy link

abhinavc commented Jul 8, 2019

Hi Abdul,
First, thanks for this wonderful library. I, however, can't seem to get loadingBuilder to work as I want it to.

In particular, I want to show a 2 x 5 grid of Card elements. Hence, I have defined the following

body: PagewiseGridView.count(
   crossAxisCount: 2,
   pageLoadController: <something>,
   itemBuilder: <something>,
   loadingBuilder: (context) => GridView.count(
       crossAxisCount: 2, 
       children: List<Widget>.generate(10, (j) => EmptyCard()),
   ), 
)

What I get instead is a 1 x 2 row of EmptyCard. What should my loading widget be so that _getStandardContainer() expands to show a 2 x 5 grid? I have tried Column, Row etc. - but to no avail

Thanks
Abhinav

@abhinavc
Copy link
Author

abhinavc commented Jul 8, 2019

Could this be related to #67?

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

1 participant