Commit 4afd2ee8 authored by wonko's avatar wonko

add sparse laecture to fill schedule until end

parent 354cacd0
......@@ -81,7 +81,7 @@ class Lectures {
List<Room> rooms = [];
static final DateTime startTime = DateTime(2019, 6, 14, 17, 0);
static final DateTime endTime = startTime.add(Duration(hours: 15));
static final DateTime endTime = startTime.add(Duration(hours: 12));
static List<DateTime> lectureHours() {
List<DateTime> times = [Lectures.startTime];
......
......@@ -145,6 +145,10 @@ class RoomSchedule extends StatelessWidget {
lastEnd = room.lectures[i].end;
i++;
} while (i < room.lectures.length);
Lecture sparse = Lecture.empty(start: lastEnd, end: Lectures.endTime);
if (sparse != null) {
_roomSchedule.add(sparse);
}
}
return RoomSchedule(scrollController, room, _roomSchedule);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment