Skip to content
On this page

Column

A representation of Y-axis layout.

NikuColumn accepts all the props as same as Column.

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

// Using Niku Prefix
NikuColumn([]);

Example Usage

n.Column([
    "Welcome".n,
    n.Button("Enter".n),
])
    ..mainCenter
    ..crossStart
    ..px = 16;

Aligning items at the center

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

Scrollable

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

Defination

View Defination on pub.dev