NikuWrap constructor
Niku extension for Wrap
Style property builder for building stack
Example usage:
NikuWrap([
Text("0"),
Text("1")
])
.center()
.append(Text("2"))
Meta property list:
- niku() - Switch to Niku() property
- build() - Apply styles and build FlatButton as Widget
Style Property list:
- direction - Set wrap direction
- horizontal - Using Axis.horizontal
- vertical - Using Axis.vertical
- mainAxisAlignemnt, mainAxis - How the children within a run should be placed in the main axis
- start, justifyStart - Using WrapAlignment.start
- center, justifyCenter - Using WrapAlignment.center
- end, justifyEnd - Using WrapAlignment.end
- spaceAround - Using WrapAlignment.spaceAround
- spaceBetween - Using WrapAlignment.spaceBetween
- spaceEvenly - Using WrapAlignment.spaceEvenly
- runMainAxisAlignemnt, runMainAxis - How the runs themselves should be placed in the cross axis
- mainStart, justifyStart - Using WrapAlignment.start
- mainCenter, justifyCenter - Using WrapAlignment.center
- mainEnd, justifyEnd - Using WrapAlignment.end
- spaceAround - Using WrapAlignment.spaceAround
- spaceBetween - Using WrapAlignment.spaceBetween
- spaceEvenly - Using WrapAlignment.spaceEvenly
- crossAxisAlignment, crossAxis - How the children within a run should be aligned relative to each other in the cross axis
- baseline - Using CrossAxisAlignment.baseline
- crossStart, itemsStart - Using CrossAxisAlignment.start
- crossCenter, itemsCenter - Using CrossAxisAlignment.center
- spacing - How much space to place between children in a run in the main axis.
- runSpacing - How much space to place between the runs themselves in the cross axis.
- 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
- clip, clipBehavior - Add clip behavior of widget
Implementation
NikuWrap(
this._children, {
this.key,
});