mirror of
https://github.com/vleeuwenmenno/supplements.git
synced 2025-09-11 18:29:12 +02:00
refactor: update color opacity methods to use withValues for consistency
This commit is contained in:
@@ -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}');
|
||||
|
Reference in New Issue
Block a user