dont know what i did

This commit is contained in:
Jan Pleterski
2026-11-28 22:22:21 +01:00
parent 258303deb8
commit 05399092b8
33 changed files with 77 additions and 38 deletions
+10
View File
@@ -375,6 +375,7 @@ class AppCard extends StatelessWidget {
final Color? borderColor;
final double borderWidth;
final bool dashed;
final Color? glow; // a soft halo in this colour round the card
const AppCard({
super.key,
@@ -387,6 +388,7 @@ class AppCard extends StatelessWidget {
this.borderColor,
this.borderWidth = 1,
this.dashed = false,
this.glow,
});
@override
@@ -408,6 +410,14 @@ class AppCard extends StatelessWidget {
);
if (dashed) {
card = CustomPaint(painter: _DashedBorder(color: c.line, radius: radius), child: card);
} else if (glow != null) {
card = DecoratedBox(
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(radius),
boxShadow: [BoxShadow(color: glow!.withValues(alpha: c.isDark ? 0.28 : 0.22), blurRadius: 14)],
),
child: card,
);
} else if (!c.isDark && color == null) {
card = DecoratedBox(
decoration: BoxDecoration(borderRadius: BorderRadius.circular(radius), boxShadow: c.shadow),