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"))
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
-
mainAxisSize, mainAxis - Set main axis size
- sizeMax - Using MainAxisSize.max
- sizeMin - Using MainAxisSize.min
-
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
-
margin, m - Padding of container
- margin, m - apply margin to all side
- mx - apply margin to x axis
- my - apply margin y axis
- mt - apply margin top side
- ml - apply margin left side
- mb - apply margin bottom side
- ml - apply margin right side
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
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(
) → 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(
BuildContext context) → Widget -
Apply styles and build Row as Widget
override
-
child(
Widget child) → NikuRow - Append child
-
children(
List< Widget> children) → NikuRow - 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) → 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
-
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(
) → 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
-
internalBuild(
Widget widget) → Widget -
inherited
-
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
-
m(
double margin) → NikuCore -
Apply margin to top
inherited
-
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
-
mainSize(
MainAxisSize size) → NikuRow - Set main axis size
-
mainStart(
) → NikuRow - Using MainAxisAlignment.start
-
margin(
EdgeInsets padding) → NikuCore -
Apply margin using
EdgeInsetinherited -
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) → 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
-
sizeMax(
) → NikuRow - Using MainAxisSize.max
-
sizeMin(
) → NikuRow - Using MainAxisSize.min
-
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.
-
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(
) → NikuRow - Using VerticalDirection.up
-
verticalDirection(
VerticalDirection verticalDirection) → NikuRow - A direction in which boxes flow vertically.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited