GlassSheet constructor
const
GlassSheet({
- Key? key,
- required Widget child,
- LiquidGlassSettings? settings,
- GlassQuality? quality,
- bool showDragIndicator = true,
- Color? dragIndicatorColor,
- double topBorderRadius = 32.0,
- double? bottomBorderRadius,
- EdgeInsetsGeometry? padding,
- EdgeInsetsGeometry margin = const EdgeInsets.symmetric(horizontal: 8, vertical: 8),
- bool isScrollable = true,
- double interactionScale = 1.01,
- double stretch = 0.5,
- double resistance = 0.08,
- Axis? stretchAxis = Axis.vertical,
- bool allowPositiveStretch = false,
- bool allowNegativeStretch = true,
- bool enableInteractionGlow = true,
- Color? glowColor,
- double glowRadius = 1.5,
- bool enableSaturationGlow = true,
- bool suppressInteractionOnChildren = false,
Creates a glass sheet widget.
Typically not instantiated directly - use GlassSheet.show instead.
Implementation
const GlassSheet({
super.key,
required this.child,
this.settings,
this.quality,
this.showDragIndicator = true,
this.dragIndicatorColor,
this.topBorderRadius = 32.0,
this.bottomBorderRadius,
this.padding,
this.margin = const EdgeInsets.symmetric(horizontal: 8, vertical: 8),
this.isScrollable = true,
this.interactionScale = 1.01,
this.stretch = 0.5,
this.resistance = 0.08,
this.stretchAxis = Axis.vertical,
this.allowPositiveStretch = false,
this.allowNegativeStretch = true,
this.enableInteractionGlow = true,
this.glowColor,
this.glowRadius = 1.5,
this.enableSaturationGlow = true,
this.suppressInteractionOnChildren = false,
});