Skip to content

Commit 249bb2a

Browse files
committed
feat: add little gap to indicate there is a gap between days
1 parent 4a85632 commit 249bb2a

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

kitchenowl/lib/pages/household_page/planner.dart

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,8 +212,15 @@ class _PlannerPageState extends State<PlannerPage> {
212212
);
213213
}
214214

215+
DateTime? _previousCookingDate;
215216
for (final cookingDate
216217
in state.getUniqueCookingDays()) {
218+
if (_previousCookingDate != null) {
219+
if (daysBetween(_previousCookingDate, cookingDate) > 1) {
220+
children.add(const SizedBox(width: 15.0));
221+
}
222+
}
223+
_previousCookingDate = cookingDate;
217224
for (final plan
218225
in state.getPlannedOfDate(cookingDate)) {
219226
children.add(

0 commit comments

Comments
 (0)