There is a ContinuousRectangleBorder paint which I can pass to the shape parameter of Card or Material widget.
Material(
shape: ContinuousRectangleBorder(
borderRadius: BorderRadius.circular(50),
),
elevation: 4,
color: theme.primaryColor,
child: image,
borderOnForeground: true,
)
But in android if I pass an image to the widget, the image won't clip as the parent. What is the best way to crop image with the identical shape?