ScrollableColumn class

A widgets that wrapps the provided children inside a column, which then is wrapped inside a scroll view to allow scrolling through children.

The arguments should match the default Column's arguments. The default minimal height is set using a constrained box. The constrains are set to fill the screen's height at minimum. If the column's height should be lower than the device's height,pass a verticalCut value to decrease the constraint's minimum height by the provided value. To avoid any constrains, use, set constrained to false.

Inheritance

Constructors

ScrollableColumn({Key? key, ScrollController? controller, ScrollPhysics physics = const BouncingScrollPhysics(), required List<Widget> children, MainAxisAlignment mainAxisAlignment = MainAxisAlignment.start, CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.center, MainAxisSize mainAxisSize = MainAxisSize.max, TextBaseline textBaseline = TextBaseline.alphabetic, TextDirection textDirection = TextDirection.ltr, VerticalDirection verticalDirection = VerticalDirection.down, EdgeInsets padding = const EdgeInsets.all(0.0), bool reverse = false, double verticalCut = 0.0, bool constrained = true})
Creates a ScrollableColumn.
const

Properties

children List<Widget>
The list of widgets to be displayed in the column.
final
constrained bool
States whether to constrain the overall height of the scrollable column. To avoid pixel overflows on small areas, the constrained flag should be set to false.
final
controller ScrollController?
The ScrollController to controll the scroll interaction.
final
crossAxisAlignment CrossAxisAlignment
The horizontal alignment.
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
The vertical alignment.
final
mainAxisSize MainAxisSize
The vertical size. The vertical size might be larger then intended due to the constrained box's minumum height is set to the screen's height.
final
padding EdgeInsets
The inner padding wrapping the children.
final
physics ScrollPhysics
The scrolling behavior.
final
reverse bool
States whether to reverse the scroll input.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
textBaseline TextBaseline
The text base alignment.
final
textDirection TextDirection
The text direction.
final
verticalCut double
The vertical cut which will be subtracted from the constrain's minimum height.
final
verticalDirection VerticalDirection
The vertical direction.
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