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"))
.build()
Meta property list:
- niku() - Switch to Niku() property
- build() - Apply styles and build FlatButton as Widget
Style Property list:
- mainAxisAlignemnt, mainAxis - Set main axis alignment
- mainStart, justifyStart - Using MainAxisAlignment.start
- mainCenter, justifyCenter - Using MainAxisAlignment.center
- mainEnd, justifyEnd - Using MainAxisAlignment.end
- spaceAround - Using MainAxisAlignment.spaceAround
- spaceBetween - Using MainAxisAlignment.spaceBetween
- spaceEvenly - Using MainAxisAlignment.spaceEvenly
- crossAxisAlignment, crossAxis - Set cross axis alignment
- baseline - Using CrossAxisAlignment.baseline
- crossStart, itemsStart - Using CrossAxisAlignment.start
- crossCenter, itemsCenter - Using CrossAxisAlignment.center
- crossEnd, itemsEnd - Using CrossAxisAlignment.end
- stretch - Using CrossAxisAlignment.stretch
- 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
- verticalAlign - A direction in which boxes flow vertically
- up - Using
VerticalAlign.up
- down - Using
VerticalAlign.down
- up - Using
- textBaseline - A horizontal line used for aligning text
- alphabetic - Using TextBaseline.alphabetic
- ideographic - Using TextBaseline.ideographic
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
-
NikuColumn(List<
Widget> children) - Niku extension for Column
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(
) → 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(
{Key? key}) → Column - Apply styles and build Column as Widget
-
child(
Widget child) → NikuColumn - Append child
-
children(
List< Widget> children) → NikuColumn - Append all of children
-
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
-
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
-
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
-
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
-
mainStart(
) → NikuColumn - 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) → 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
-
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.
-
toString(
) → String -
A string representation of this object.
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