Skip to content

Stack ​

A representation of Z-axis layout.

NikuStack accepts all the props as same as Stack.

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

// Using Niku Prefix
NikuStack([]);

Example Usage ​

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

Aligning items at the center ​

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

Defination ​

View Defination on pub.dev