NikuRow class

Niku extension for Row

Style property builder for building row

Example usage:

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

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

Constructors

NikuRow(List<Widget> children)
Niku extension for Row

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

alphabetic() NikuRow
Using TextBaseline.alphabetic
append(Widget child) NikuRow
Append child
appendChild(Widget child) NikuRow
Append child
appendChildren(List<Widget> children) NikuRow
Append all of children
baseline() NikuRow
Set CrossAxisAlignment.baseline
build({Key? key}) Row
Apply styles and build Row as Widget
child(Widget child) NikuRow
Append child
children(List<Widget> children) NikuRow
Append all of children
crossAxis(CrossAxisAlignment crossAxisAlignment) NikuRow
Set cross axis alignment
crossAxisAlignment(CrossAxisAlignment crossAxisAlignment) NikuRow
Set cross axis alignment
crossCenter() NikuRow
Set CrossAxisAlignment.center
crossEnd() NikuRow
Set CrossAxisAlignment.crossEnd
crossStart() NikuRow
Set CrossAxisAlignment.start
down() NikuRow
Using VerticalDirection.down
ideographic() NikuRow
Using TextBaseline.ideographic
insert(int index, Widget child) NikuRow
Insert child at index
insertAll(int index, List<Widget> children) NikuRow
Insert child at index
itemsCenter() NikuRow
Set CrossAxisAlignment.center
itemsEnd() NikuRow
Set CrossAxisAlignment.crossEnd
itemsStart() NikuRow
Set CrossAxisAlignment.start
justifyCenter() NikuRow
Using MainAxisAlignment.center
justifyEnd() NikuRow
Using MainAxisAlignment.end
justifyStart() NikuRow
Using MainAxisAlignment.start
ltr() NikuRow
Use left-to-right direction
mainAxis(MainAxisAlignment mainAxisAlignment) NikuRow
Set main axis alignment
mainAxisAlignment(MainAxisAlignment mainAxisAlignment) NikuRow
Set main axis alignment
mainCenter() NikuRow
Using MainAxisAlignment.center
mainEnd() NikuRow
Using MainAxisAlignment.end
mainStart() NikuRow
Using MainAxisAlignment.start
niku() Niku
Switch to Niku() property
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
prepend(Widget child) NikuRow
Prepend child
prependChild(Widget child) NikuRow
Prepend child
prependChildren(List<Widget> children) NikuRow
Prepend all of children
rtl() NikuRow
Use right-to-left direction
spaceAround() NikuRow
Using MainAxisAlignment.spaceAround
spaceBetween() NikuRow
Using MainAxisAlignment.spaceBetween
spaceEvenly() NikuRow
Using MainAxisAlignment.spaceEvenly
stretch() NikuRow
Set CrossAxisAlignment.stretch
textBaseline(TextBaseline textBaseline) NikuRow
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) NikuRow
Set whether text is left-to-right or right-to-left direction.
toString() String
A string representation of this object.
inherited
up() NikuRow
Using VerticalDirection.up
verticalDirection(VerticalDirection verticalDirection) NikuRow
A direction in which boxes flow vertically.

Operators

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