GlassCard constructor

const GlassCard({
  1. Key? key,
  2. Widget? leading,
  3. Widget? title,
  4. Widget? subtitle,
  5. Widget? trailing,
  6. Widget? child,
  7. VoidCallback? onTap,
  8. double borderRadius = 24,
  9. EdgeInsetsGeometry padding = const EdgeInsets.all(16),
  10. Color? tint,
  11. String? semanticLabel,
  12. FocusNode? focusNode,
  13. bool autofocus = false,
  14. GlassMode mode = GlassMode.auto,
})

Creates a card of glass.

Implementation

const GlassCard({
  super.key,
  this.leading,
  this.title,
  this.subtitle,
  this.trailing,
  this.child,
  this.onTap,
  this.borderRadius = 24,
  this.padding = const EdgeInsets.all(16),
  this.tint,
  this.semanticLabel,
  this.focusNode,
  this.autofocus = false,
  this.mode = GlassMode.auto,
});