LayoutConfig constructor

const LayoutConfig({
  1. required LayoutMode mode,
  2. required Map<LayoutPosition, ComponentConfig?> components,
  3. Color? backgroundColor,
  4. bool showDebugBounds = false,
  5. bool accordionMode = true,
  6. bool enableFloatingAutoHide = true,
  7. 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秒后隐藏
});