letsar / flutter_staggered_grid_view

A Flutter staggered grid view
MIT License
3.15k stars 510 forks source link

How to create children on demand? #278

Open zhangzhaojun opened 2 years ago

zhangzhaojun commented 2 years ago

I need to create children on demand, but which grid layouts is appropriate?

  1. Staggered Grid Layout
  2. Masonry Grid Layout
  3. Quilted Grid Layout ...
letsar commented 2 years ago

Hi, what do you by "on demand"? As in infinite scrolling? If it's the case, you'll need to use a sliver based layout (which exclude the Staggered since it's not based on slivers). Then the question is more about what is the desired arrangement.

xmany commented 2 years ago

@letsar Hi, I'm in need of a infinite scrolling Masonry layout, is MasonryGridView.custom() ok for it? I can't find a paginated widget, not sure how to achieve the infinite scrolling with Masonry, thanks!

xmany commented 1 year ago

I need to create children on demand, but which grid layouts is appropriate?

  1. Staggered Grid Layout
  2. Masonry Grid Layout
  3. Quilted Grid Layout ...

@zhangzhaojun Hi, have you found a solution? thanks :)

zhangzhaojun commented 1 year ago

I need to create children on demand, but which grid layouts is appropriate?

  1. Staggered Grid Layout
  2. Masonry Grid Layout
  3. Quilted Grid Layout ...

@zhangzhaojun Hi, have you found a solution? thanks :)

Masonry, it meets my requirements.

xmany commented 1 year ago

I need to create children on demand, but which grid layouts is appropriate?

  1. Staggered Grid Layout
  2. Masonry Grid Layout
  3. Quilted Grid Layout ...

@zhangzhaojun Hi, have you found a solution? thanks :)

Masonry, it meets my requirements.

@zhangzhaojun How to use Masonry to create children on demand? because it seems every masonry interface require you to provide the exact number of children in advance ?