BaseExpansion constructor

const BaseExpansion({
  1. Key? key,
  2. double left = 0.0,
  3. double top = 0.0,
  4. double? right = 0.0,
  5. double? bottom = 0.0,
  6. double? width,
  7. double? height,
  8. Duration duration = _expansionTransitionDuration,
  9. required Widget child,
  10. bool barrierDismissible = true,
  11. Curve curve = Curves.easeOutCubic,
  12. bool enableLiquidGlass = true,
  13. double glassOpacity = 0.85,
  14. double reflectionIntensity = 0.6,
  15. double refractionStrength = 0.4,
  16. bool adaptiveInteraction = true,
  17. bool hapticFeedback = true,
  18. bool environmentalAwareness = true,
  19. bool useMaterial3Elevation = true,
  20. Color? backgroundColor,
  21. BorderRadius borderRadius = const BorderRadius.all(Radius.circular(16.0)),
  22. 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);