SantoCollapsePanel<T extends Object> class
折叠面板单个面板配置,需配合 SantoCollapse 使用
API 参考 TDesign Flutter TCollapsePanel
Constructors
- SantoCollapsePanel({Key? key, required T value, required SantoCollapsePanelBuilder headerBuilder, required Widget body, double? bodyHeight, bool disabled = false, SantoCollapsePlacement placement = SantoCollapsePlacement.bottom, String? semanticsLabel, Color? backgroundColor, SantoCollapsePanelBuilder? leadingBuilder, SantoCollapsePanelBuilder? trailingBuilder, SantoCollapsePanelBuilder? expandIconBuilder = _defaultExpandIconBuilder})
-
const
Properties
- backgroundColor → Color?
-
折叠面板的背景色
final
- body → Widget
-
折叠面板的内容组件
final
- bodyHeight → double?
-
展开内容区域的固定高度(包含内容内边距)
final
- disabled → bool
-
是否禁用面板交互
final
- expandIconBuilder → SantoCollapsePanelBuilder?
-
构建展开图标
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- headerBuilder → SantoCollapsePanelBuilder
-
折叠面板的头部组件构造函数
final
- key → Key?
-
面板标识,用于列表插入、删除和重排时保留内容状态
final
- leadingBuilder → SantoCollapsePanelBuilder?
-
构建标题左侧区域
final
- placement → SantoCollapsePlacement
-
内容相对标题的展开方向
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- semanticsLabel → String?
-
面板标题的无障碍标签;复杂自定义标题无法自动提取文本时使用
final
- trailingBuilder → SantoCollapsePanelBuilder?
-
构建标题右侧、展开图标之前的操作区域
final
- value → T
-
面板唯一标识,用于匹配父级 SantoCollapse.value 中的展开值
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