BaseDrawer.percent constructor
const
BaseDrawer.percent({
- Key? key,
- Duration duration = _drawerTransitionDuration,
- AxisDirection axisDirection = AxisDirection.right,
- Color backgroundColor = _drawerBackgroundColor,
- required double? percent,
- required Widget child,
- Curve curve = Curves.linearToEaseOut,
- Curve reverseCurve = Curves.linearToEaseOut,
- bool allowGesture = true,
- bool allowMultipleGesture = false,
- bool barrierDismissible = true,
- bool enableLiquidGlass = true,
- double glassOpacity = 0.9,
- double reflectionIntensity = 0.7,
- double refractionStrength = 0.5,
- bool adaptiveInteraction = true,
- bool hapticFeedback = true,
Specify percentage
Implementation
const BaseDrawer.percent({
Key? key,
this.duration = _drawerTransitionDuration,
this.axisDirection = AxisDirection.right,
this.backgroundColor = _drawerBackgroundColor,
required this.percent,
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,
}) : size = null,
assert(percent != null && percent > 0 && percent <= 100),
assert(child != null),
super(key: key);