SantoCol class
栅格列(参考 antd Grid 的 Col)
仅能作为 SantoRow 的直接子组件使用。通过 24 等分栅格控制宽度:
三等分一行为 span: 8,超出 24 的部分整体换行。
Constructors
Properties
- child → Widget
-
列内容
final
- flex → int?
-
伸缩值,非 null 时该列以
Expanded(flex: flex)参与布局,忽略 span 宽度final - hashCode → int
-
The hash code for this object.
no setterinherited
- offset → int?
-
左侧偏移的栅格数
final
- order → int?
-
排序权重,小的在前;相同 order 保持声明顺序
final
- pull → int?
-
左移的栅格数(视觉位移,不影响兄弟元素布局,参考 CSS position: relative)
final
- push → int?
-
右移的栅格数(视觉位移,不影响兄弟元素布局,参考 CSS position: relative)
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- span → int?
-
占据的栅格数,1~24;为 null 时宽度由内容自适应;
为 0 时不渲染(等效 display: none)
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