Skip to content

Commit

Permalink
Add vertical scroll at lectures tab (#1347)
Browse files Browse the repository at this point in the history
  • Loading branch information
limwa authored Oct 6, 2024
2 parents 0a87ac7 + 6f38eb1 commit df1253f
Showing 1 changed file with 20 additions and 18 deletions.
38 changes: 20 additions & 18 deletions packages/uni_app/lib/view/schedule/schedule.dart
Original file line number Diff line number Diff line change
Expand Up @@ -133,24 +133,26 @@ class SchedulePageViewState extends State<SchedulePageView>
) {
return Container(
key: Key('schedule-page-day-column-$day'),
child: Column(
mainAxisSize: MainAxisSize.min,
children: lectures
.map(
// TODO(thePeras): ScheduleSlot should receive a lecture
// instead of all these parameters.
(lecture) => ScheduleSlot(
subject: lecture.subject,
typeClass: lecture.typeClass,
rooms: lecture.room,
begin: lecture.startTime,
end: lecture.endTime,
occurrId: lecture.occurrId,
teacher: lecture.teacher,
classNumber: lecture.classNumber,
),
)
.toList(),
child: SingleChildScrollView(
child: Column(
mainAxisSize: MainAxisSize.min,
children: lectures
.map(
// TODO(thePeras): ScheduleSlot should receive a lecture
// instead of all these parameters.
(lecture) => ScheduleSlot(
subject: lecture.subject,
typeClass: lecture.typeClass,
rooms: lecture.room,
begin: lecture.startTime,
end: lecture.endTime,
occurrId: lecture.occurrId,
teacher: lecture.teacher,
classNumber: lecture.classNumber,
),
)
.toList(),
),
),
);
}
Expand Down

0 comments on commit df1253f

Please sign in to comment.