Created
February 23, 2020 11:39
-
-
Save slamdon/43aadbfe3dc4f7beaaf35b2e8a3a5c2f to your computer and use it in GitHub Desktop.
ImageContainer
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 _buildImageContainer(BuildContext context) { | |
return ClipRRect( | |
child: SizedBox( | |
child: Image.asset( | |
this.product.imagePath, | |
fit: BoxFit.cover, | |
), | |
), | |
borderRadius: BorderRadius.circular(10), | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment