Skip to main content
Stac ClipOval allows you to build the Flutter ClipOval widget using JSON. It clips its child using an oval shape, which is useful for creating circular or oval UI elements. To know more about the ClipOval widget in Flutter, refer to the official documentation.

Properties

PropertyTypeDefaultDescription
clipBehaviorClipantiAliasThe clipping behavior when content extends beyond the oval.
childMap<String, dynamic>RequiredThe widget to clip with an oval shape.

Example JSON

{
  "type": "clipOval",
  "clipBehavior": "antiAlias",
  "child": {
    "type": "image",
    "src": "https://placehold.co/600x400",
    "width": 200,
    "height": 200,
    "fit": "cover"
  }
}