GlassPanel constructor

const GlassPanel({
  1. required Widget child,
  2. Key? key,
  3. String? title,
  4. String? subtitle,
  5. LiquidGlassConfig? config,
  6. EdgeInsetsGeometry padding = const EdgeInsets.all(16),
  7. EdgeInsetsGeometry margin = const EdgeInsets.symmetric(horizontal: 16, vertical: 8),
})

Creates a glass panel containing child.

Implementation

const GlassPanel({
  required this.child,
  super.key,
  this.title,
  this.subtitle,
  this.config,
  this.padding = const EdgeInsets.all(16),
  this.margin = const EdgeInsets.symmetric(horizontal: 16, vertical: 8),
});