simplified code across the app and consolidated duplicated helpers
This commit is contained in:
1 parent
3e856d0b1c
commit
ee1240f71a
155 files changed
+1772
-2546
No files matched your search
@@ -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