simplified code across the app and consolidated duplicated helpers

This commit is contained in:
2026-09-27 17:29:54 +02:00
parent 3e856d0b1c
commit ee1240f71a
155 changed files with 1772 additions and 2546 deletions
@@ -253,20 +253,8 @@ class _DayColumn extends StatelessWidget {
final period = layout.periodAtY(details.localPosition.dy);
if (period == null) return;
final start = DateTime(
date.year,
date.month,
date.day,
period.start.hour,
period.start.minute,
);
final end = DateTime(
date.year,
date.month,
date.day,
period.end.hour,
period.end.minute,
);
final start = date.withTime(period.start);
final end = date.withTime(period.end);
if (_overlapsExistingAppointment(start, end, dayAppts)) return;
Haptics.longPress();