CNGlassCard constructor
const
CNGlassCard({
- Key? key,
- required Widget child,
- EdgeInsetsGeometry padding = const EdgeInsets.all(16),
- double cornerRadius = 16.0,
- Color? tint,
- bool interactive = true,
- bool breathing = false,
- CNSpotlightMode spotlight = CNSpotlightMode.none,
- Color? spotlightColor,
- double spotlightIntensity = 0.3,
- 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,
});