I am very new at Dart so if this problem seems trivial or not required, I apologize!!
I want to implement Pinterest-style grid layout for my feed with only 2 columns. I am using the staggered_grid_layout and I tried implementing an answer from a stackoverflow question. Here is my code till now:
home.dart
SizedBox(
height: 535,
width: 180,
child: new StaggeredGridView.countBuilder(
crossAxisCount: 2,
itemCount: 10,
itemBuilder: (BuildContext context, int index) => Card(
child: Column(
children: <Widget>[
Image.network(storiesList[index]),
Text("Some text"),
],
),
),
staggeredTileBuilder: (int index) =>
new StaggeredTile.fit(2),
mainAxisSpacing: 4.0,
crossAxisSpacing: 4.0,
),
)
NOTE: I added the SizedBox() because I was getting a Vertical viewport was given unbounded height error, please recommend an alternative if that is not alright
Thank you!
EDIT: How it looks right now
EDIT: How it should look

