diff --git a/app/src/main/java/com/mtucoursesmobile/michigantechcourses/classes/MTUCourses.kt b/app/src/main/java/com/mtucoursesmobile/michigantechcourses/classes/MTUCourses.kt index cab0153..1d44568 100644 --- a/app/src/main/java/com/mtucoursesmobile/michigantechcourses/classes/MTUCourses.kt +++ b/app/src/main/java/com/mtucoursesmobile/michigantechcourses/classes/MTUCourses.kt @@ -3,6 +3,6 @@ package com.mtucoursesmobile.michigantechcourses.classes data class MTUCourses( val id: String, val year: Int, val semester: String, val subject: String, val crse: String, val title: String, val description: String?, val updatedAt: String, val deletedAt: String?, - val prereqs: String, val offered: List?, val minCredits: Double, val maxCredits: Double + val prereqs: String?, val offered: List?, val minCredits: Double, val maxCredits: Double ) diff --git a/app/src/main/java/com/mtucoursesmobile/michigantechcourses/views/courses/CourseDetailView.kt b/app/src/main/java/com/mtucoursesmobile/michigantechcourses/views/courses/CourseDetailView.kt index 4d86e27..8bc178a 100644 --- a/app/src/main/java/com/mtucoursesmobile/michigantechcourses/views/courses/CourseDetailView.kt +++ b/app/src/main/java/com/mtucoursesmobile/michigantechcourses/views/courses/CourseDetailView.kt @@ -295,11 +295,21 @@ fun CourseDetailView( description = description ) + foundCourse.prereqs?.let { + Text( + "Prerequisites: $it", + modifier = Modifier.padding( + top = 4.dp, + start = 4.dp + ), + style = MaterialTheme.typography.labelMedium + ) + } HorizontalDivider( Modifier .padding(vertical = 8.dp) - .padding(top = 4.dp) + .padding(top = 2.dp) ) Text( text = "Course Sections:",