LayoutBuilders class

布局构建器 负责构建不同模式的布局

Constructors

LayoutBuilders({required LayoutConfig config, required AnimationManager animationManager, required LayoutBehaviorManager behaviorManager, required IComponentFactory componentFactory})

Properties

animationManager AnimationManager
final
behaviorManager LayoutBehaviorManager
final
componentFactory IComponentFactory
组件工厂,通过依赖注入传入 允许业务层自定义组件创建逻辑,实现业务组件与布局系统的解耦
final
config LayoutConfig
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

buildComponentContainer(LayoutPosition position, ComponentConfig componentConfig) Widget
构建组件容器
buildFloatingComponent(LayoutPosition position, ComponentConfig componentConfig) Widget
构建单个浮动组件
buildFloatingComponents() List<Widget>
构建浮动组件列表
buildLandscapeLayout() Widget
构建横屏布局
buildLayout() Widget
构建主布局
buildNonFloatingLandscapeLayout() Widget
构建非浮动横屏布局
buildNonFloatingPortraitLayout() Widget
构建非浮动竖屏布局
buildPortraitLayout() Widget
构建竖屏布局
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
updateConfig(LayoutConfig newConfig) → void
更新配置(轻量级更新,不重建管理器)

Operators

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