letsar / flutter_staggered_grid_view

A Flutter staggered grid view
MIT License
3.12k stars 508 forks source link

Layout Falling effect #321

Open BensonGathu opened 12 months ago

BensonGathu commented 12 months ago

I'm using MasonryGridView.builder to get the "pinterest look". however due to images having diff dimensions, as the layout loads i get alot of layout falling/collapsing inorder to take the images dimensions. How can i fix this (tried using placeholder of fixed dimensions but layout falling off still persists).

T-moz commented 11 months ago

@BensonGathu Every item should have the same size before and after receiving the image from network.

A good solution to this, is to get the aspect ratio of each images from the API, and use the AspectRatio widget.