simplified code across the app and consolidated duplicated helpers
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user