feat: Update project configuration and add Podfile for iOS and macOS support

This commit is contained in:
2025-08-26 21:47:34 +02:00
parent 8356743906
commit 7f42a1ff20
11 changed files with 272 additions and 7 deletions

View File

@@ -54,7 +54,7 @@ class _SupplementCardState extends State<SupplementCard> {
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(16),
color: isCompletelyTaken
? Colors.green.shade800
? Theme.of(context).colorScheme.surface
: isTakenToday
? Theme.of(context).colorScheme.secondaryContainer
: Theme.of(context).colorScheme.surface,
@@ -97,7 +97,7 @@ class _SupplementCardState extends State<SupplementCard> {
? Icons.schedule
: Icons.medication,
color: isCompletelyTaken
? Colors.white
? Theme.of(context).colorScheme.inverseSurface
: isTakenToday
? Theme.of(context).colorScheme.onSecondary
: Theme.of(context).colorScheme.primary,
@@ -116,7 +116,7 @@ class _SupplementCardState extends State<SupplementCard> {
fontSize: 16,
fontWeight: FontWeight.bold,
color: isCompletelyTaken
? Colors.white
? Theme.of(context).colorScheme.inverseSurface
: isTakenToday
? Theme.of(context).colorScheme.onSecondaryContainer
: Theme.of(context).colorScheme.onSurface,
@@ -147,10 +147,10 @@ class _SupplementCardState extends State<SupplementCard> {
color: Colors.green.shade500,
borderRadius: BorderRadius.circular(12),
),
child: const Text(
child: Text(
'Complete',
style: TextStyle(
color: Colors.white,
color: Theme.of(context).colorScheme.inverseSurface,
fontSize: 10,
fontWeight: FontWeight.bold,
),
@@ -180,7 +180,7 @@ class _SupplementCardState extends State<SupplementCard> {
backgroundColor: isCompletelyTaken
? Colors.green.shade500
: Theme.of(context).colorScheme.primary,
foregroundColor: Colors.white,
foregroundColor: Theme.of(context).colorScheme.inverseSurface,
padding: const EdgeInsets.symmetric(horizontal: 12, vertical: 6),
minimumSize: const Size(60, 32),
shape: RoundedRectangleBorder(
@@ -201,7 +201,7 @@ class _SupplementCardState extends State<SupplementCard> {
icon: Icon(
Icons.more_vert,
color: isCompletelyTaken
? Colors.white
? Theme.of(context).colorScheme.inverseSurface
: Theme.of(context).colorScheme.onSurfaceVariant,
),
onSelected: (value) {