ResponsiveRowColumn class
A convenience wrapper that use Flex for responsive horizontal and vertical layout 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
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- ResponsiveRowColumn
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.
no setterinherited
- isColumn → dynamic
-
no setter
- isRow → dynamic
-
no setter
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- 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.
no setterinherited
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.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