CNGlassCard constructor

const CNGlassCard({
  1. Key? key,
  2. required Widget child,
  3. EdgeInsetsGeometry padding = const EdgeInsets.all(16),
  4. double cornerRadius = 16.0,
  5. Color? tint,
  6. bool interactive = true,
  7. bool breathing = false,
  8. CNSpotlightMode spotlight = CNSpotlightMode.none,
  9. Color? spotlightColor,
  10. double spotlightIntensity = 0.3,
  11. double spotlightRadius = 0.5,
})

Creates a glass card.

Implementation

const CNGlassCard({
  super.key,
  required this.child,
  this.padding = const EdgeInsets.all(16),
  this.cornerRadius = 16.0,
  this.tint,
  this.interactive = true,
  this.breathing = false,
  this.spotlight = CNSpotlightMode.none,
  this.spotlightColor,
  this.spotlightIntensity = 0.3,
  this.spotlightRadius = 0.5,
});