Widget layout
Widget layout controls spacing, item ratio, margins, columns, scroll, and related container settings for widgets.
This page lists the shared layout properties. For platform class details, see API reference: iOS | Android | React Native. For the widget appearance set, see Widget appearance.
WidgetLayout properties
| Property name | Property description | Type | Default value |
|---|---|---|---|
| horizontalItemsSpacing | Horizontal spacing between items | Float | 10.0 |
| verticalItemsSpacing | Vertical spacing between items | Float | 10.0 |
| itemRatio | Aspect ratio of WidgetItems | Float | 2/3 |
| margins | Space between the container and the items | Insets | Zero |
| columns | Number of columns in grid layout | Int | 2 |
| itemsMaxCount | Max number of items in the widget | Int (Optional) | null |
| isScrollEnabled | Widget scrolling option | Boolean | true |
| widgetItemAppearance | Widget item appearance settings | WidgetItemAppearance | Default settings |
Updated 25 days ago
Did this page help you?
