Created
November 15, 2021 18:58
-
-
Save guilhermecarvalhocarneiro/ad395df7a743f5ee9e59f0a065ebd542 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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