NikuWrap class

Niku extension for Stack

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:

Inheritance
Available extensions

Constructors

NikuWrap(List<Widget> _children, {Key? key})
Niku extension for Wrap

Properties

getMb double
no setterinherited
getMl double
no setterinherited
getMr double
no setterinherited
getMt double
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

alignment(WrapAlignment wrapAlignment) NikuWrap
How the children within a run should be placed in the main axis.
append(Widget child) NikuWrap
Append child
appendChild(Widget child) NikuWrap
Append child
appendChildren(List<Widget> children) NikuWrap
Append all of children
build(BuildContext context) Widget
Apply styles and build Stack as Widget
override
center() NikuWrap
How the children within a run should be placed in the main axis.
child(Widget child) NikuWrap
Append child
children(List<Widget> children) NikuWrap
Append all of children
clip(Clip clip) NikuWrap
Add clip behavior of widget
clipBehavior(Clip clip) NikuWrap
Add clip behavior of widget
clone(dynamic item) Map<String, dynamic>
inherited
createElement() StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
cross(WrapCrossAlignment crossAxisAlignment) NikuWrap
How the children within a run should be aligned relative to each other in the cross axis.
crossAxisAlignment(WrapCrossAlignment crossAxisAlignment) NikuWrap
How the children within a run should be aligned relative to each other in the cross axis.
crossCenter() NikuWrap
How the children within a run should be aligned relative to each other in the cross axis.
crossEnd() NikuWrap
How the children within a run should be aligned relative to each other in the cross axis.
crossStart() NikuWrap
How the children within a run should be aligned relative to each other in the cross axis.
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
direction(Axis direction) NikuWrap
Set wrap direction
down() NikuWrap
Determines the order to lay children out vertically and how to interpret start and end in the vertical direction.
end() NikuWrap
How the children within a run should be placed in the main axis.
horizontal() NikuWrap
Set wrap direction using Axis.horizontal
insert(int index, Widget child) NikuWrap
Insert child at index
insertAll(int index, List<Widget> children) NikuWrap
Insert child at index
internalBuild(Widget widget) Widget
inherited
itemsCenter() NikuWrap
How the children within a run should be aligned relative to each other in the cross axis.
itemsEnd() NikuWrap
How the children within a run should be aligned relative to each other in the cross axis.
itemsStart() NikuWrap
How the children within a run should be aligned relative to each other in the cross axis.
justifyCenter() NikuWrap
How the children within a run should be placed in the main axis.
justifyEnd() NikuWrap
How the children within a run should be placed in the main axis.
justifyStart() NikuWrap
How the children within a run should be placed in the main axis.
ltr() NikuWrap
Use left-to-right direction
m(double margin) NikuCore
Apply margin to top
inherited
margin(EdgeInsets padding) NikuCore
Apply margin using EdgeInset
inherited
mb(double margin) NikuCore
Apply margin to bottom
inherited
ml(double margin) NikuCore
Apply margin to left side
inherited
mr(double margin) NikuCore
Apply margin to right side
inherited
mt(double margin) NikuCore
Apply margin to top
inherited
mx(double margin) NikuCore
Apply margin to x axis
inherited
my(double margin) NikuCore
Apply margin to y axis
inherited
niku() Niku

Available on Widget, provided by the NikuWidget extension

Switch to Niku() property
niku() Niku
Switch to Niku() property
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
prepend(Widget child) NikuWrap
Prepend child
prependChild(Widget child) NikuWrap
Prepend child
prependChildren(List<Widget> children) NikuWrap
Prepend all of children
rtl() NikuWrap
Use right-to-left direction
runAlignment(WrapAlignment wrapAlignment) NikuWrap
How the runs themselves should be placed in the cross axis.
runCenter() NikuWrap
How the runs themselves should be placed in the cross axis.
runEnd() NikuWrap
How the runs themselves should be placed in the cross axis.
runJustifyCenter() NikuWrap
How the runs themselves should be placed in the cross axis.
runJustifyEnd() NikuWrap
How the runs themselves should be placed in the cross axis.
runJustifyStart() NikuWrap
How the runs themselves should be placed in the cross axis.
runSpaceAround() NikuWrap
How the runs themselves should be placed in the cross axis.
runSpaceBetween() NikuWrap
How the runs themselves should be placed in the cross axis.
runSpaceEvenly() NikuWrap
How the children within a run should be aligned relative to each other in the cross axis.
runSpacing(double runSpacing) NikuWrap
How much space to place between the runs themselves in the cross axis.
runStart() NikuWrap
How the runs themselves should be placed in the cross axis.
spaceAround() NikuWrap
How the children within a run should be placed in the main axis.
spaceBetween() NikuWrap
How the children within a run should be placed in the main axis.
spaceEvenly() NikuWrap
How the runs themselves should be placed in the cross axis.
spacing(double spacing) NikuWrap
How much space to place between children in a run in the main axis.
start() NikuWrap
How the children within a run should be placed in the main axis.
textDirection(TextDirection textDirection) NikuWrap
Set whether text is left-to-right or right-to-left direction.
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited
up() NikuWrap
Determines the order to lay children out vertically and how to interpret start and end in the vertical direction.
vertical() NikuWrap
Set wrap direction using Axis.vertical
verticalDirection(VerticalDirection direction) NikuWrap
Determines the order to lay children out vertically and how to interpret start and end in the vertical direction.

Operators

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