Want to create Card with background Image in Flutter? Other Way Without using – ClipRRect Widget – is To set semanticContainer: true, of Card Widget.
Example Code as Below:
1 2 3 4 5 6 7 8 9 10 11 12 13 | Card( semanticContainer: true, clipBehavior: Clip.antiAliasWithSaveLayer, child: Image.network( 'https://placeimg.com/640/480/any', fit: BoxFit.fill, ), shape: RoundedRectangleBorder( borderRadius: BorderRadius.circular(10.0), ), elevation: 5, margin: EdgeInsets.all(10), ), |
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.