Skip to content

Instantly share code, notes, and snippets.

@guilhermecarvalhocarneiro
Created November 15, 2021 18:58
Show Gist options
  • Save guilhermecarvalhocarneiro/ad395df7a743f5ee9e59f0a065ebd542 to your computer and use it in GitHub Desktop.
Save guilhermecarvalhocarneiro/ad395df7a743f5ee9e59f0a065ebd542 to your computer and use it in GitHub Desktop.
Widget _buildImagesGrid(List<LaudoExameModel> imagens) {
return GridView.count(
crossAxisCount: 2,
shrinkWrap: true,
crossAxisSpacing: 2.0,
// mainAxisSpacing: 4.0,
children: List.generate(imagens.length, (index) {
final imagemResultado = imagens[index];
return Card(
color: Colors.white,
child: CachedNetworkImage(
fit: BoxFit.cover,
imageUrl: imagemResultado.arquivo,
),
);
}),
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment