Skip to main content

ClipRRect

Overview

Clips a widget to a rounded rectangle. For example, round the corners of a card image.

Properties

PropertyDescriptionValueDefault
borderRadiusSets the corner radius of the clip.Radius value per corner0 (square corners)
clipperDefines 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 regionNot set
clipBehaviorSets how the edges are handled when clipping along the rounded rectangle.none, hardEdge, antiAlias, antiAliasWithSaveLayerantiAlias