import 'package:household_keeper/features/home/domain/daily_plan_models.dart'; /// State for the calendar day view: tasks for the selected date + overdue tasks. class CalendarDayState { final DateTime selectedDate; final List dayTasks; final List overdueTasks; /// Total number of tasks in the database (across all days/rooms). /// Used by the UI to distinguish first-run empty state (no tasks exist at all) /// from celebration state (tasks exist but today's are all done). final int totalTaskCount; const CalendarDayState({ required this.selectedDate, required this.dayTasks, required this.overdueTasks, required this.totalTaskCount, }); /// True when both day tasks and overdue tasks are empty. /// Determined by the UI layer (completion state vs. no tasks at all /// is handled in the widget based on this flag and history context). bool get isEmpty => dayTasks.isEmpty && overdueTasks.isEmpty; }