flutter_staggered_grid_view icon indicating copy to clipboard operation
flutter_staggered_grid_view copied to clipboard

Layout Falling effect

Open BensonGathu opened this issue 1 year ago • 1 comments

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).

BensonGathu avatar Sep 16 '23 08:09 BensonGathu

@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.

T-moz avatar Sep 21 '23 10:09 T-moz