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

@@ -87,7 +87,7 @@ class SupplementProvider with ChangeNotifier, WidgetsBindingObserver {
if (currentDate != lastCheckDate) {
if (kDebugMode) {
printLog('Date changed detected: ${lastCheckDate} -> ${currentDate}');
printLog('Date changed detected: $lastCheckDate -> $currentDate');
printLog('Refreshing today\'s intakes for new day...');
}
@@ -175,9 +175,6 @@ class SupplementProvider with ChangeNotifier, WidgetsBindingObserver {
printLog('Adding supplement: ${supplement.name}');
final id = await _databaseHelper.insertSupplement(supplement);
printLog('Supplement inserted with ID: $id');
final newSupplement = supplement.copyWith(id: id);
// Notifications will be rescheduled in grouped mode after reloading supplements
await loadSupplements();
printLog('Supplements reloaded, count: ${_supplements.length}');