NikuStack constructor

NikuStack(
  1. List<Widget> _children
)

Niku extension for Stack

Style property builder for building stack

Example usage:

NikuStack([
  Text("0"),
  Text("1")
])
  .center()
  .append(Text("2"))
  .build()

Meta property list:

  • niku() - Switch to Niku() property
  • build() - Apply styles and build FlatButton as Widget

Style Property list:

  • alignment, align - Set self alignment
    • align - Accept AlignmentDirectional to align self
    • topStart - Apply widget to top-start
    • topCenter - Apply widget to top-center
    • topEnd - Apply widget to top-end
    • centerStart - Apply widget to center-start
    • center - Apply widget to center
    • centerEnd - Apply widget to center-end
    • bottomStart - Apply widget to bottom-start
    • bottomCenter - Apply widget to bottom-center
    • bottomEnd - Apply widget to bottom-end
  • textDirection - Set whether text is left-to-right or right-to-left direction.
    • textDirection - Set textDirection by using TextDirection
    • ltr - Use left-to-right direction
    • rtl - Use right-to-left direction
  • stackFit - Adjust fit using StackFit of stack
  • clip, clipBehavior - Add clip behavior of widget

Implementation

NikuStack(this._children);