ClipRRect
Overview
Clips a widget to a rounded rectangle. For example, round the corners of a card image.
Properties
| Property | Description | Value | Default |
|---|---|---|---|
borderRadius | Sets the corner radius of the clip. | Radius value per corner | 0 (square corners) |
clipper | Defines the rounded rectangle used as the clip region. When it is not set, or its width or height is 0, the clip follows the size of the child widget. | Rounded rectangular region | Not set |
clipBehavior | Sets how the edges are handled when clipping along the rounded rectangle. | none, hardEdge, antiAlias, antiAliasWithSaveLayer | antiAlias |