refactor: update color opacity methods to use withValues for consistency

This commit is contained in:
2025-08-31 18:32:57 +02:00
parent 62debb6a7c
commit 6a2085f4e6
13 changed files with 38 additions and 319 deletions

View File

@@ -51,10 +51,10 @@ Future<void> showBulkTakeDialog(
return Container(
padding: const EdgeInsets.all(12),
decoration: BoxDecoration(
color: Theme.of(context).colorScheme.surfaceVariant.withOpacity(0.5),
color: Theme.of(context).colorScheme.surfaceVariant.withValues(alpha: 0.5),
borderRadius: BorderRadius.circular(8),
border: Border.all(
color: Theme.of(context).colorScheme.outline.withOpacity(0.3),
color: Theme.of(context).colorScheme.outline.withValues(alpha: 0.3),
),
),
child: Column(
@@ -108,7 +108,7 @@ Future<void> showBulkTakeDialog(
color: Theme.of(context).colorScheme.surface,
borderRadius: BorderRadius.circular(6),
border: Border.all(
color: Theme.of(context).colorScheme.outline.withOpacity(0.3),
color: Theme.of(context).colorScheme.outline.withValues(alpha: 0.3),
),
),
child: Row(

View File

@@ -76,10 +76,10 @@ Future<void> showTakeSupplementDialog(
Container(
padding: const EdgeInsets.all(12),
decoration: BoxDecoration(
color: Theme.of(context).colorScheme.primaryContainer.withOpacity(0.3),
color: Theme.of(context).colorScheme.primaryContainer.withValues(alpha: 0.3),
borderRadius: BorderRadius.circular(8),
border: Border.all(
color: Theme.of(context).colorScheme.primary.withOpacity(0.3),
color: Theme.of(context).colorScheme.primary.withValues(alpha: 0.3),
),
),
child: Column(
@@ -137,7 +137,7 @@ Future<void> showTakeSupplementDialog(
color: Theme.of(context).colorScheme.surface,
borderRadius: BorderRadius.circular(6),
border: Border.all(
color: Theme.of(context).colorScheme.outline.withOpacity(0.5),
color: Theme.of(context).colorScheme.outline.withValues(alpha: 0.5),
),
),
child: Column(