NikuStack class
Niku extension for Stack
Style property builder for building stack
Example usage:
NikuStack([
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:
-
alignment, align - Set self alignment
- align - Accept AlignmentDirectional to align self
- topStart - Apply widget to top-start
- topCenter - Apply widget to top-center
- topEnd - Apply widget to top-end
- centerStart - Apply widget to center-start
- center - Apply widget to center
- centerEnd - Apply widget to center-end
- bottomStart - Apply widget to bottom-start
- bottomCenter - Apply widget to bottom-center
- bottomEnd - Apply widget to bottom-end
-
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
-
stackFit - Adjust fit using StackFit of stack
- stackFit, fit - Adjust fit using StackFit of stack
- expand - Using StackFit.expand
- passthrogh - Using StackFit.passthrough
- loose - Using StackFit.loose
-
clip, clipBehavior - Add clip behavior of widget
-
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
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- NikuCore
- NikuStack
- 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
-
align(
AlignmentDirectional alignment) → NikuStack - Apply alignment to stack
-
alignment(
AlignmentDirectional alignment) → NikuStack - Apply alignment to stack
-
append(
Widget child) → NikuStack - Append child
-
appendChild(
Widget child) → NikuStack - Append child
-
appendChildren(
List< Widget> children) → NikuStack - Append all of children
-
bottomCenter(
) → NikuStack - Apply widget to bottom end
-
bottomEnd(
) → NikuStack - Apply widget to bottom right
-
bottomStart(
) → NikuStack - Apply widget to bottom start
-
build(
BuildContext context) → Widget -
Apply styles and build Stack as Widget
override
-
center(
) → NikuStack - Apply widget to center
-
centerEnd(
) → NikuStack - Apply widget to center end
-
centerStart(
) → NikuStack - Apply widget to center start
-
child(
Widget child) → NikuStack - Append child
-
children(
List< Widget> children) → NikuStack - Append all of children
-
clip(
Clip clip) → NikuStack - Add clip behavior of widget
-
clipBehavior(
Clip clip) → NikuStack - 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
-
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
-
expand(
) → NikuStack - Adjust fit using StackFit of stack
-
fit(
StackFit fit) → NikuStack - Adjust fit using StackFit of stack
-
insert(
int index, Widget child) → NikuStack - Insert child at index
-
insertAll(
int index, List< Widget> children) → NikuStack - Insert child at index
-
internalBuild(
Widget widget) → Widget -
inherited
-
loose(
) → NikuStack - Adjust fit using StackFit of stack
-
ltr(
) → NikuStack - Use left-to-right direction
-
m(
double margin) → NikuCore -
Apply margin to top
inherited
-
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
-
passthrough(
) → NikuStack - Adjust fit using StackFit of stack
-
prepend(
Widget child) → NikuStack - Prepend child
-
prependChild(
Widget child) → NikuStack - Prepend child
-
prependChildren(
List< Widget> children) → NikuStack - Prepend all of children
-
rtl(
) → NikuStack - Use right-to-left direction
-
stackFit(
StackFit fit) → NikuStack - Adjust fit using StackFit of stack
-
textDirection(
TextDirection textDirection) → NikuStack - 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
-
topCenter(
) → NikuStack - Apply widget to top center
-
topEnd(
) → NikuStack - Apply widget to top end
-
topStart(
) → NikuStack - Apply widget to top start
-
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
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited