`SliverGridDelegateWithFixedCrossAxisCount()` not rendering
andesappal opened this issue · 2 comments
andesappal commented
Describe the bug
SliverGridDelegateWithFixedCrossAxisCount()
not rendering
To Reproduce
Widget _productWidget() {
return Container(
margin: const EdgeInsets.symmetric(vertical: 10),
width: AppTheme.fullWidth(context),
height: AppTheme.fullWidth(context) * .7,
child: GridView(
gridDelegate: const SliverGridDelegateWithFixedCrossAxisCount(
crossAxisCount: 1,
childAspectRatio: 1.0,
mainAxisSpacing: 0.0,
crossAxisSpacing: 0.0),
padding: const EdgeInsets.only(left: 20),
scrollDirection: Axis.horizontal,
children: AppData.productList
.map(
(product) => ProductCard(
product: product,
onSelected: (model) {
setState(() {
AppData.productList.forEach((item) {
// item.isSelected;
});
// model.isSelected = true;
});
},
),
)
.toList(),
),
);
}
renders me a black screen with the search bar atop. I have no idea what the issue could be. Thanks!
andesappal commented
Your original parameters for SliverGrid... were also not working
TheAlphamerc commented
Compiled the project after a long time and it's still running without any issue. Just have to migrate to android embedding 2.