NikuColumn class

Niku extension for Column

Style property builder for building column

Example usage:

NikuColumn([
  Text("0"),
  Text("1")
])
  .mainAxis(MainAxisAlignment.center)
  .crossCenter()
  .append(Text("2"))

Meta property list:

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

Style Property list:

Children property list:

  • child, append, appendChild - Append child
  • children, appendChildren - Append all of children
  • prepend, prependChild - Prepend child
  • prependChildren - Prepend all of children
  • insert - Insert child at index
  • insertAll - Insert all children at index
Inheritance
Available extensions

Constructors

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

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

alphabetic() NikuColumn
Using TextBaseline.alphabetic
append(Widget child) NikuColumn
Append child
appendChild(Widget child) NikuColumn
Append child
appendChildren(List<Widget> children) NikuColumn
Append all of children
baseline() NikuColumn
Set CrossAxisAlignment.baseline
build(BuildContext context) Widget
Apply styles and build Column as Widget
override
child(Widget child) NikuColumn
Append child
children(List<Widget> children) NikuColumn
Append all of children
clone(dynamic item) Map<String, dynamic>
inherited
createElement() StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
crossAxis(CrossAxisAlignment crossAxisAlignment) NikuColumn
Set cross axis alignment
crossAxisAlignment(CrossAxisAlignment crossAxisAlignment) NikuColumn
Set cross axis alignment
crossCenter() NikuColumn
Set CrossAxisAlignment.center
crossEnd() NikuColumn
Set CrossAxisAlignment.crossEnd
crossStart() NikuColumn
Set CrossAxisAlignment.start
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
down() NikuColumn
Using VerticalDirection.down
ideographic() NikuColumn
Using TextBaseline.ideographic
insert(int index, Widget child) NikuColumn
Insert child at index
insertAll(int index, List<Widget> children) NikuColumn
Insert child at index
internalBuild(Widget widget) Widget
inherited
itemsCenter() NikuColumn
Set CrossAxisAlignment.center
itemsEnd() NikuColumn
Set CrossAxisAlignment.crossEnd
itemsStart() NikuColumn
Set CrossAxisAlignment.start
justifyCenter() NikuColumn
Using MainAxisAlignment.center
justifyEnd() NikuColumn
Using MainAxisAlignment.end
justifyStart() NikuColumn
Using MainAxisAlignment.start
ltr() NikuColumn
Use left-to-right direction
m(double margin) NikuCore
Apply margin to top
inherited
mainAxis(MainAxisAlignment mainAxisAlignment) NikuColumn
Set main axis alignment
mainAxisAlignment(MainAxisAlignment mainAxisAlignment) NikuColumn
Set main axis alignment
mainCenter() NikuColumn
Using MainAxisAlignment.center
mainEnd() NikuColumn
Using MainAxisAlignment.end
mainSize(MainAxisSize size) NikuColumn
Set main axis size
mainStart() NikuColumn
Using MainAxisAlignment.start
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
Switch to Niku() property
niku() Niku

Available on Widget, provided by the NikuWidget extension

Switch to Niku() property
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
prepend(Widget child) NikuColumn
Prepend child
prependChild(Widget child) NikuColumn
Prepend child
prependChildren(List<Widget> children) NikuColumn
Prepend all of children
rtl() NikuColumn
Use right-to-left direction
sizeMax() NikuColumn
Using MainAxisSize.max
sizeMin() NikuColumn
Using MainAxisSize.min
spaceAround() NikuColumn
Using MainAxisAlignment.spaceAround
spaceBetween() NikuColumn
Using MainAxisAlignment.spaceBetween
spaceEvenly() NikuColumn
Using MainAxisAlignment.spaceEvenly
stretch() NikuColumn
Set CrossAxisAlignment.stretch
textBaseline(TextBaseline textBaseline) NikuColumn
The common baseline that should be aligned between this text span and its parent text span, or, for the root text spans, with the line box.
textDirection(TextDirection textDirection) NikuColumn
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() NikuColumn
Using VerticalDirection.up
verticalDirection(VerticalDirection verticalDirection) NikuColumn
A direction in which boxes flow vertically.

Operators

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