Skip to content
On this page

Wrap

A representation of axis layout.

NikuWrap accepts all the props as same as Wrap.

// Using namespace
n.Wrap([]);

// Using Niku Prefix
NikuWrap([]);

Example Usage

n.Wrap([
    "Welcome".n,
    n.Button("Enter".n),
])
    ..runStart
    ..runSpacing = 8;

Aligning items at the center

n.Wrap([
    "This should be".n,
    "at the center".n
])
    ..center;

Set axis

n.Wrap([])
    ..vertical
    ..crossCenter;

Defination

View Defination on pub.dev