Rectangle
Rounded rectangle shape
A filled and/or stroked rectangle, with a separate radius per corner.
Methods
Rectangle(options?)WidgetNodeA rectangle shape.
- options Any
- color Color
Fill colour.
- strokeColor Color
Outline colour.
- strokeWidth Number
Outline thickness.
- width Any
A number of points, or a Size.
- height Any
A number of points, or a Size.
- topLeadingRadius Number
Corner radius.
- topTrailingRadius Number
Corner radius.
- bottomLeadingRadius Number
Corner radius.
- bottomTrailingRadius Number
Corner radius.
- color Color
Examples
Rounded card background
Rectangle({
color: Color.blue(),
width: Size.fixed(120), height: Size.fixed(80),
topLeadingRadius: 16, topTrailingRadius: 16
})