LayoutConfig constructor
const
LayoutConfig({
- required LayoutMode mode,
- required Map<
LayoutPosition, ComponentConfig?> components, - Color? backgroundColor,
- bool showDebugBounds = false,
- bool accordionMode = true,
- bool enableFloatingAutoHide = true,
- Duration floatingAutoHideDelay = const Duration(seconds: 5),
Implementation
const LayoutConfig({
required this.mode,
required this.components,
this.backgroundColor,
this.showDebugBounds = false,
this.accordionMode = true,
this.enableFloatingAutoHide = true, // 默认开启自动隐藏
this.floatingAutoHideDelay = const Duration(seconds: 5), // 默认5秒后隐藏
});