ColumnsParams class

Combines all the parameters concerning layout columns.

gutter is a constant gap between all of the columns. When count is given, only that particular number of columns is rendered. If count is null, numbers of columns is limited only due to screen's width. arrangement parameter describes the way how to arrange columns. For more details see ColumnsArrangement. offset parameter makes sure that the layout is rendered after given number of pixels. It is valid only when arrangement is set to ColumnsArrangement.bottom or ColumnsArrangement.top. margin parameter ensures that there are equal gaps from both left and right. It applies only when arrangement is set to ColumnsArrangement.stretch. width is a width of a single column. Does not apply when arrangement is set to ColumnsArrangement.stretch. To set columns color, pass it via Color color parameter (by default set to Color(0x1AFF0000)). safeAreaParams allows to avoid system obstacles. For more details see SafeAreaParams.

Constructors

ColumnsParams({double gutter = 16.0, int? count, ColumnsArrangement arrangement = ColumnsArrangement.stretch, double offset = 0.0, double margin = 0.0, double width = 16.0, Color color = _defaultColor, SafeAreaParams safeAreaParams = const SafeAreaParams()})
const

Properties

arrangement ColumnsArrangement
final
color Color
final
count int?
final
gutter double
final
hashCode int
The hash code for this object.
no setterinherited
margin double
final
offset double
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
safeAreaParams SafeAreaParams
final
width double
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited