Divider Widgets Overview¶
Divider widgets improve layout clarity by adding spacing and visual boundaries.
Lucy Studio provides Spacer, Divider-H, Divider-V, and SpaceBox.
Divider Widget Types¶
| Widget | Description | Usage Tip |
|---|---|---|
Spacer | Fills remaining space in flex layouts such as Row and Column | Align groups inside toolbars |
Divider-H | Horizontal separator line | Separate sections in a column |
Divider-V | Vertical separator line | Separate groups in a row |
SpaceBox | Fixed-size empty box for explicit spacing | Fixed gaps and card padding |

Spacer¶
Spacer consumes remaining space in a flex container.
1. flex Property¶
- Defines how much of the remaining space the spacer takes.
- If multiple spacers exist, space is split by ratio.
flex: 0means the spacer takes no space.
2. Example Ratios¶
If remaining space is 60 and there are two spacers:
flex ratio | Spacer size |
|---|---|
1 : 1 | 30 : 30 |
1 : 3 | 15 : 45 |
1 : 0 | 60 : 0 |

Divider-H and Divider-V¶
Divider-H and Divider-V draw visible lines to separate content regions.
1. Difference Summary¶
Divider-Hrenders a horizontal line.Divider-Vrenders a vertical line.
Divider widgets vs split layout widgets
Divider-HandDivider-Vadd visual lines only.VSplitandHSplitcreate structural area splits.
Category Divider-H / Divider-V VSplit / HSplit Widget type Divider widget Layout widget Core role Visual boundary Structural split Rendering Draws a line Splits area layout
2. Property Summary¶
| Property | Type | Default | Description |
|---|---|---|---|
visible | bool | true | Excluded from layout when false |
height / width | double | 0.0 | Occupied area including spacing |
thickness | double | 0.0 | Actual line thickness (0.0 uses 1px) |
indent | double | 0.0 | Start inset |
endIndent | double | 0.0 | End inset |
color | Color | Theme default | Line color |
3. Tips¶
heightorwidthcontrols the full box area.thicknesscontrols only the visible line weight.- Use
indentandendIndentfor shorter, cleaner separators.
SpaceBox Properties¶
Use SpaceBox when you need fixed-size spacing.
Spacer fills flexible space. SpaceBox defines exact dimensions.
1. Property Summary¶
| Property | Type | Default | Description |
|---|---|---|---|
visible | bool | true | Hides space when false |
size.width | double or infinity | infinity | Space width |
size.height | double or infinity | infinity | Space height |
lock | icon | locked | Keep width and height linked |
2. Tips¶
- Numeric values create fixed pixel spacing.
infinityconsumes remaining space on that axis.- Use
lockedto keep square spacing,unlockedfor rectangular spacing.