Padding

The Padding struct defines padding values for all four sides (left, top, right, bottom) of a widget.

Properties

decoratenametypedescription
liveleftf64The padding on the left side.
livetopf64The padding on the top side.
liverightf64The padding on the right side.
livebottomf64The padding on the bottom side.

Example

#![allow(unused)]
fn main() {
padding: 16.0,
padding: {left: 10.0},
padding: {left: 5.0, top: 6.0},
padding: {left: 10.0, right: 6.0, top: 10.0, bottom: 18.0},
}