ComponentConfig constructor
const
ComponentConfig({
- ComponentType? type,
- Widget builder(
- BuildContext context
- bool isFloating = false,
- bool hasAnimation = false,
- bool isCollapsible = false,
- bool initiallyExpanded = true,
- Color? backgroundColor,
- Duration animationDuration = const Duration(milliseconds: 300),
- AnimationType? animationType,
- double? width,
- double? height,
- EdgeInsets? margin,
- EdgeInsets? padding,
- Map<
String, dynamic> ? customProps, - bool showToggleButton = false,
- bool isShow = true,
Implementation
const ComponentConfig({
this.type,
this.builder,
this.isFloating = false,
this.hasAnimation = false,
this.isCollapsible = false,
this.initiallyExpanded = true,
this.backgroundColor,
this.animationDuration = const Duration(milliseconds: 300),
this.animationType,
this.width,
this.height,
this.margin,
this.padding,
this.customProps,
this.showToggleButton = false, // 默认显示切换按钮
this.isShow = true, // 默认显示组件
});