diff --git a/packages/uni_ui/assets/images/profile_placeholder.png b/packages/uni_ui/assets/images/profile_placeholder.png new file mode 100644 index 000000000..75a1560f0 Binary files /dev/null and b/packages/uni_ui/assets/images/profile_placeholder.png differ diff --git a/packages/uni_ui/lib/cards/generic_card.dart b/packages/uni_ui/lib/cards/generic_card.dart index 1725f7dae..f23cc7c89 100644 --- a/packages/uni_ui/lib/cards/generic_card.dart +++ b/packages/uni_ui/lib/cards/generic_card.dart @@ -2,16 +2,16 @@ import 'package:figma_squircle/figma_squircle.dart'; import 'package:flutter/material.dart'; class GenericCard extends StatelessWidget { - const GenericCard({ - super.key, - this.margin, - this.padding, - this.color, - this.shadowColor, - this.borderRadius, - this.onClick, - this.child, - }); + const GenericCard( + {super.key, + this.margin, + this.padding, + this.color, + this.shadowColor, + this.borderRadius, + this.onClick, + this.child, + this.gradient}); final EdgeInsetsGeometry? margin; final EdgeInsetsGeometry? padding; @@ -20,6 +20,7 @@ class GenericCard extends StatelessWidget { final double? borderRadius; final Function? onClick; final Widget? child; + final Gradient? gradient; @override Widget build(BuildContext context) { @@ -40,6 +41,7 @@ class GenericCard extends StatelessWidget { color: color ?? cardTheme.color ?? theme.colorScheme.surfaceContainer, + gradient: gradient, boxShadow: [ BoxShadow( color: shadowColor ?? diff --git a/packages/uni_ui/lib/cards/schedule_card.dart b/packages/uni_ui/lib/cards/schedule_card.dart index 5445abfc8..28c4026cb 100644 --- a/packages/uni_ui/lib/cards/schedule_card.dart +++ b/packages/uni_ui/lib/cards/schedule_card.dart @@ -3,7 +3,7 @@ import 'package:phosphor_flutter/phosphor_flutter.dart'; import 'package:uni_ui/cards/generic_card.dart'; import 'package:uni_ui/theme.dart'; -class ScheduleCard extends GenericCard { +class ScheduleCard extends StatelessWidget { const ScheduleCard( {super.key, required this.name, @@ -27,6 +27,14 @@ class ScheduleCard extends GenericCard { @override Widget build(BuildContext context) { return GenericCard( + gradient: RadialGradient( + colors: [ + Color(0xFF280709), + Color(0xFF511515), + ], + center: Alignment.topLeft, + radius: 1.5, + stops: [0, 1]), key: key, child: Row( mainAxisAlignment: MainAxisAlignment.spaceBetween, @@ -118,7 +126,6 @@ class ScheduleCard extends GenericCard { ) ], ), - color: isActive ? Color.fromARGB(255, 40, 7, 9) : null, ); } } diff --git a/packages/uni_ui/pubspec.yaml b/packages/uni_ui/pubspec.yaml index 71d7cbb74..b04a5e2b6 100644 --- a/packages/uni_ui/pubspec.yaml +++ b/packages/uni_ui/pubspec.yaml @@ -21,4 +21,6 @@ dev_dependencies: test: any flutter: + assets: + - assets/images/ uses-material-design: true