BaseDrawer constructor

const BaseDrawer({
  1. Key? key,
  2. Duration duration = _drawerTransitionDuration,
  3. AxisDirection axisDirection = AxisDirection.right,
  4. Size? size,
  5. double? percent,
  6. Color backgroundColor = _drawerBackgroundColor,
  7. required Widget child,
  8. Curve curve = Curves.linearToEaseOut,
  9. Curve reverseCurve = Curves.linearToEaseOut,
  10. bool allowGesture = true,
  11. bool allowMultipleGesture = false,
  12. bool barrierDismissible = true,
  13. bool enableLiquidGlass = true,
  14. double glassOpacity = 0.9,
  15. double reflectionIntensity = 0.7,
  16. double refractionStrength = 0.5,
  17. bool adaptiveInteraction = true,
  18. bool hapticFeedback = true,
})

Implementation

const BaseDrawer({
  Key? key,
  this.duration = _drawerTransitionDuration,
  this.axisDirection = AxisDirection.right,
  this.size,
  this.percent,
  this.backgroundColor = _drawerBackgroundColor,
  required this.child,
  this.curve = Curves.linearToEaseOut,
  this.reverseCurve = Curves.linearToEaseOut,
  this.allowGesture = true,
  this.allowMultipleGesture = false,
  this.barrierDismissible = true,

  // iOS 26 Liquid Glass Dynamic Material properties
  this.enableLiquidGlass = true,
  this.glassOpacity = 0.9,
  this.reflectionIntensity = 0.7,
  this.refractionStrength = 0.5,
  this.adaptiveInteraction = true,
  this.hapticFeedback = true,
})  : assert(size == null || percent == null, 'Cannot provide both a size and a percent'),
      assert(child != null),
      super(key: key);