ResponsiveRowColumn class Null safety

A convenience wrapper for responsive Row and Column switching with padding and spacing.

ResponsiveRowColumn combines responsiveness behaviors for managing rows and columns into one convenience widget. This widget requires all children to be ResponsiveRowColumnItem widgets. Row vs column layout is controlled by passing a ResponsiveRowColumnType to layout. Add spacing between widgets with rowSpacing and columnSpacing. Add padding around widgets with rowPadding and columnPadding.

See ResponsiveRowColumnItem for Flex and FlexFit options.

Inheritance

Constructors

ResponsiveRowColumn({Key? key, List<ResponsiveRowColumnItem> children = const [], required ResponsiveRowColumnType layout, MainAxisAlignment rowMainAxisAlignment = MainAxisAlignment.start, MainAxisSize rowMainAxisSize = MainAxisSize.max, CrossAxisAlignment rowCrossAxisAlignment = CrossAxisAlignment.center, TextDirection? rowTextDirection, VerticalDirection rowVerticalDirection = VerticalDirection.down, TextBaseline? rowTextBaseline, MainAxisAlignment columnMainAxisAlignment = MainAxisAlignment.start, MainAxisSize columnMainAxisSize = MainAxisSize.max, CrossAxisAlignment columnCrossAxisAlignment = CrossAxisAlignment.center, TextDirection? columnTextDirection, VerticalDirection columnVerticalDirection = VerticalDirection.down, TextBaseline? columnTextBaseline, double? rowSpacing, double? columnSpacing, EdgeInsets rowPadding = EdgeInsets.zero, EdgeInsets columnPadding = EdgeInsets.zero})
const

Properties

children List<ResponsiveRowColumnItem>
final
columnCrossAxisAlignment CrossAxisAlignment
final
columnMainAxisAlignment MainAxisAlignment
final
columnMainAxisSize MainAxisSize
final
columnPadding EdgeInsets
final
columnSpacing double?
final
columnTextBaseline TextBaseline?
final
columnTextDirection TextDirection?
final
columnVerticalDirection VerticalDirection
final
hashCode int
The hash code for this object. [...]
@nonVirtual, read-only, inherited
isColumn → dynamic
read-only
isRow → dynamic
read-only
key Key?
Controls how one widget replaces another widget in the tree. [...]
final, inherited
layout ResponsiveRowColumnType
final
rowCrossAxisAlignment CrossAxisAlignment
final
rowMainAxisAlignment MainAxisAlignment
final
rowMainAxisSize MainAxisSize
final
rowPadding EdgeInsets
final
rowSpacing double?
final
rowTextBaseline TextBaseline?
final
rowTextDirection TextDirection?
final
rowVerticalDirection VerticalDirection
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

build(BuildContext context) Widget
Describes the part of the user interface represented by this widget. [...]
override
buildChildren(List<ResponsiveRowColumnItem> children, bool rowColumn, double? spacing) List<Widget>
Logic to construct widget children.
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. [...]
@protected, inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node. [...]
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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. [...]
@nonVirtual, inherited