Skip to content
On this page

Stack

A representation of Z-axis layout.

NikuStack accepts all the props as same as Stack.

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

// Using Niku Prefix
NikuStack([]);

Example Usage

n.Stack([
    "Welcome".n,
    n.Button("Enter".n),
])
    ..topStart
    ..loose;

Aligning items at the center

n.Stack([
    "This should be".n,
    "at the center".n
])
    ..center
    ..wFull
    ..hFull;

Defination

View Defination on pub.dev