BaseExpansion.fromHeight constructor

const BaseExpansion.fromHeight({
  1. Key? key,
  2. double left = 0.0,
  3. double top = 0.0,
  4. double? height,
  5. Duration duration = _expansionTransitionDuration,
  6. required Widget child,
  7. bool barrierDismissible = true,
  8. Curve curve = Curves.easeOutCubic,
  9. bool enableLiquidGlass = true,
  10. double glassOpacity = 0.85,
  11. double reflectionIntensity = 0.6,
  12. double refractionStrength = 0.4,
  13. bool adaptiveInteraction = true,
  14. bool hapticFeedback = true,
  15. bool environmentalAwareness = true,
  16. bool useMaterial3Elevation = true,
  17. Color? backgroundColor,
  18. BorderRadius borderRadius = const BorderRadius.all(Radius.circular(16.0)),
  19. double elevation = 8.0,
})

Implementation

const BaseExpansion.fromHeight({
  Key? key,
  this.left = 0.0,
  this.top = 0.0,
  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,
})  : width = null,
      right = null,
      bottom = null,
      super(key: key);