NikuStack class

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

Constructors

NikuStack(List<Widget> _children)
Niku extension for Stack

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

align(AlignmentDirectional alignment) NikuStack
Apply alignment to stack
alignment(AlignmentDirectional alignment) NikuStack
Apply alignment to stack
append(Widget child) NikuStack
Append child
appendChild(Widget child) NikuStack
Append child
appendChildren(List<Widget> children) NikuStack
Append all of children
bottomCenter() NikuStack
Apply widget to bottom end
bottomEnd() NikuStack
Apply widget to bottom right
bottomStart() NikuStack
Apply widget to bottom start
build({Key? key}) Stack
Apply styles and build Stack as Widget
center() NikuStack
Apply widget to center
centerEnd() NikuStack
Apply widget to center end
centerStart() NikuStack
Apply widget to center start
child(Widget child) NikuStack
Append child
children(List<Widget> children) NikuStack
Append all of children
clip(Clip clip) NikuStack
Add clip behavior of widget
clipBehavior(Clip clip) NikuStack
Add clip behavior of widget
expand() NikuStack
Adjust fit using StackFit of stack
fit(StackFit fit) NikuStack
Adjust fit using StackFit of stack
insert(int index, Widget child) NikuStack
Insert child at index
insertAll(int index, List<Widget> children) NikuStack
Insert child at index
loose() NikuStack
Adjust fit using StackFit of stack
ltr() NikuStack
Use left-to-right direction
niku() Niku
Switch to Niku() property
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
passthrough() NikuStack
Adjust fit using StackFit of stack
prepend(Widget child) NikuStack
Prepend child
prependChild(Widget child) NikuStack
Prepend child
prependChildren(List<Widget> children) NikuStack
Prepend all of children
rtl() NikuStack
Use right-to-left direction
stackFit(StackFit fit) NikuStack
Adjust fit using StackFit of stack
textDirection(TextDirection textDirection) NikuStack
Set whether text is left-to-right or right-to-left direction.
topCenter() NikuStack
Apply widget to top center
topEnd() NikuStack
Apply widget to top end
topStart() NikuStack
Apply widget to top start
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited