Initial commit: CookIT recipe collection and week planner

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
CedricandClaude Opus 5.5 committed 2026-10-28 22:55:09 +01:00
commit 7d7a0bc60b
173 files changed
+22803

No files matched your search

+22
View File
@@ -0,0 +1,22 @@
/// One thing planned for a Meal on a day: a Recipe or a short note.
class PlanEntry {
const PlanEntry({
required this.id,
required this.day,
required this.mealId,
this.recipeId,
this.note,
required this.position,
}) : assert((recipeId == null) != (note == null), 'A Plan Entry is either a Recipe or a note');
final String id;
/// The calendar day, as a UTC midnight (see `day.dart`).
final DateTime day;
final String mealId;
final String? recipeId;
final String? note;
/// Order within its Meal on its day.
final int position;
}