Flutter StaggeredGridView not available on latest version of flutter_staggered_grid_view
What I’m trying to do is have a GridView with a variable/dynamic CrossAxisCount.
I have a FutureBuilder retrieving data from an API and sometimes I need to show one item per line and sometimes I need to show two items per line, depending on some item properties.
I found the following code on Stackoverflow but it is not compatible with the latest version of flutter_staggered_grid_view.
I have other things on the app using version 0.6.2 of that package so I cannot use version ^0.4.0.
Flutter StaggeredGridView not available on latest version of flutter_staggered_grid_view
What I’m trying to do is have a GridView with a variable/dynamic CrossAxisCount.
I have a FutureBuilder retrieving data from an API and sometimes I need to show one item per line and sometimes I need to show two items per line, depending on some item properties.
I found the following code on Stackoverflow but it is not compatible with the latest version of flutter_staggered_grid_view.
I have other things on the app using version 0.6.2 of that package so I cannot use version ^0.4.0.
GridView not detecting index 1 in if condition
I’m building a grid view where the top right is empty if the itemCount is odd.
Child is overflowing when using grid view in flutter
I wrapped a container
with a gridView
, as a result the card is overflowing. i wrapped gridView
with a sizeBox
and set the height to 600
. Can somebody help me with this. im just started learning flutter.