BaseExpansion constructor
const
BaseExpansion({
- Key? key,
- double left = 0.0,
- double top = 0.0,
- double? right = 0.0,
- double? bottom = 0.0,
- double? width,
- double? height,
- Duration duration = _expansionTransitionDuration,
- required Widget child,
- bool barrierDismissible = true,
- Curve curve = Curves.easeOutCubic,
- bool enableLiquidGlass = true,
- double glassOpacity = 0.85,
- double reflectionIntensity = 0.6,
- double refractionStrength = 0.4,
- bool adaptiveInteraction = true,
- bool hapticFeedback = true,
- bool environmentalAwareness = true,
- bool useMaterial3Elevation = true,
- Color? backgroundColor,
- BorderRadius borderRadius = const BorderRadius.all(Radius.circular(16.0)),
- double elevation = 8.0,
Implementation
const BaseExpansion({
Key? key,
this.left = 0.0,
this.top = 0.0,
this.right = 0.0,
this.bottom = 0.0,
this.width,
this.height,
this.duration = _expansionTransitionDuration,
required this.child,
this.barrierDismissible = true,
this.curve = Curves.easeOutCubic,
// iOS 26 Liquid Glass Dynamic Material properties
this.enableLiquidGlass = true,
this.glassOpacity = 0.85,
this.reflectionIntensity = 0.6,
this.refractionStrength = 0.4,
this.adaptiveInteraction = true,
this.hapticFeedback = true,
this.environmentalAwareness = true,
// Material 3 properties
this.useMaterial3Elevation = true,
this.backgroundColor,
this.borderRadius = const BorderRadius.all(Radius.circular(16.0)),
this.elevation = 8.0,
}) : super(key: key);