RowWithColumns class

A Row that contains a given number of widgets separated by a spacer.

Inheritance

Constructors

RowWithColumns({required List<Widget?> children, required int columnCount, Key? key, Widget? spacer, CrossAxisAlignment? crossAxisAlignment, MainAxisAlignment? mainAxisAlignment})
A Row that contains a given number of widgets separated by a spacer. children represents the list o widgets, columnCount is a number of columns in the row, spacer is an optional Widget the will be placed between each widget from the list (default: HSpacer.semiNormal()).
const
RowWithColumns.double({Key? key, Widget? leading, Widget? tailing, Widget? spacer, CrossAxisAlignment? crossAxisAlignment, MainAxisAlignment? mainAxisAlignment})
A Row that contains two widgets separated by a spacer. leading is a first widget, trailing is a second one, spacer is an optional Widget the will be placed between each widget from the list (default: HSpacer.semiNormal()).
RowWithColumns.triple({Key? key, Widget? leading, Widget? center, Widget? tailing, Widget? spacer, CrossAxisAlignment? crossAxisAlignment, MainAxisAlignment? mainAxisAlignment})
A Row that contains three widgets separated by a spacer. leading is a first widget, center is a second one, trailing is a third, spacer is an optional Widget the will be placed between each widget from the list (default: HSpacer.semiNormal()).

Properties

children List<Widget?>
A list of widgets placed in the row.
final
columnCount int
A number of widgets placed in the row.
final
crossAxisAlignment CrossAxisAlignment?
How the children should be placed along the cross axis in a flex layout.
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
mainAxisAlignment MainAxisAlignment?
How the children should be placed along the main axis in a flex layout.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
spacer Widget?
A spacer placed between each widget in the row.
final

Methods

build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
override
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
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
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}) 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

Static Methods

multipleFromList({required List<Widget?> children, required int columnCount, Widget? spacer, CrossAxisAlignment? crossAxisAlignment, MainAxisAlignment? mainAxisAlignment}) List<RowWithColumns>
Returns a List of RowWithColumns widgets (that could be used, e.g, in a Column). columnCount defines number of widgets in each row, spacer is an optional Widget the will be placed between each widget from the list (default: HSpacer.semiNormal()).