ListGridGridLayout class final

ListGridLayout.grid 的具体类型,可用于 switch (layout) 分支。

Inheritance

Constructors

ListGridGridLayout({int crossAxisCount = 1, double? maxCrossAxisExtent, double mainAxisSpacing = 0, double crossAxisSpacing = 0, double childAspectRatio = 1, double? mainAxisExtent})
创建官方网格布局;通常通过 ListGridLayout.grid 构造。
const

Properties

childAspectRatio → double
子项宽高比(宽 / 高);mainAxisExtent 为空时生效
final
crossAxisCount → int
固定列数;未设置 maxCrossAxisExtent 时使用
final
crossAxisSpacing → double
交叉轴方向间距
final
hashCode → int
The hash code for this object.
no setterinherited
mainAxisExtent → double?
子项主轴长度;非空时优先于 childAspectRatio
final
mainAxisSpacing → double
主轴方向间距
final
maxCrossAxisExtent → double?
交叉轴最大宽度,据此自适应列数;设置后优先于 crossAxisCount
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Operators

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