GlassSheet constructor

const GlassSheet({
  1. Key? key,
  2. required Widget child,
  3. LiquidGlassSettings? settings,
  4. GlassQuality? quality,
  5. bool showDragIndicator = true,
  6. Color? dragIndicatorColor,
  7. double topBorderRadius = 32.0,
  8. double? bottomBorderRadius,
  9. EdgeInsetsGeometry? padding,
  10. EdgeInsetsGeometry margin = const EdgeInsets.symmetric(horizontal: 8, vertical: 8),
  11. bool isScrollable = true,
  12. double interactionScale = 1.01,
  13. double stretch = 0.5,
  14. double resistance = 0.08,
  15. Axis? stretchAxis = Axis.vertical,
  16. bool allowPositiveStretch = false,
  17. bool allowNegativeStretch = true,
  18. bool enableInteractionGlow = true,
  19. Color? glowColor,
  20. double glowRadius = 1.5,
  21. bool enableSaturationGlow = true,
  22. 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,
});