feat(ui): implement award mockup redesign
This commit is contained in:
@@ -10,13 +10,15 @@ class PluriGlassSurface extends StatelessWidget {
|
||||
required this.child,
|
||||
this.padding = const EdgeInsets.all(16),
|
||||
this.borderRadius,
|
||||
this.blurSigma = 14,
|
||||
this.blurSigma = 18,
|
||||
this.glowColor,
|
||||
});
|
||||
|
||||
final Widget child;
|
||||
final EdgeInsetsGeometry padding;
|
||||
final BorderRadius? borderRadius;
|
||||
final double blurSigma;
|
||||
final Color? glowColor;
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
@@ -32,6 +34,14 @@ class PluriGlassSurface extends StatelessWidget {
|
||||
color: t.glassSurface,
|
||||
borderRadius: radius,
|
||||
border: Border.all(color: t.glassBorder),
|
||||
boxShadow: [
|
||||
BoxShadow(
|
||||
color: glowColor ?? t.glowColor.withValues(alpha: 0.12),
|
||||
blurRadius: 30,
|
||||
spreadRadius: -14,
|
||||
offset: const Offset(0, 18),
|
||||
),
|
||||
],
|
||||
),
|
||||
child: Padding(padding: padding, child: child),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user