Margin Struct

Defines the external padding around a widget, determining its offset from adjacent items or container edges.

Property NameType
leftf64
topf64
rightf64
bottomf64

Example

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