dont know what i did
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user