GuidesAPI ReferenceRelease Notes
HomeLog InHome
Guides

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 nameProperty descriptionTypeDefault value
horizontalItemsSpacingHorizontal spacing between itemsFloat10.0
verticalItemsSpacingVertical spacing between itemsFloat10.0
itemRatioAspect ratio of WidgetItemsFloat2/3
marginsSpace between the container and the itemsInsetsZero
columnsNumber of columns in grid layoutInt2
itemsMaxCountMax number of items in the widgetInt (Optional)null
isScrollEnabledWidget scrolling optionBooleantrue
widgetItemAppearanceWidget item appearance settingsWidgetItemAppearanceDefault settings

Did this page help you?