Course Detail Screen
Component Detail
User Interface
low complexity
mobile
0
Dependencies
0
Dependents
2
Entities
0
Integrations
Description
Shows full metadata for a selected course - description, schedule, requirements, and certification linkage - alongside a primary enroll or withdraw action. Enrollment state is managed optimistically via Riverpod with automatic rollback on API failure.
course-detail-screen
Sources & reasoning
Peer mentors must review course details - requirements, schedule, certification linkage - before committing. Separating detail from catalog keeps each screen single-purpose and scopes the enrollment action to a single confirmed course.
No source references — this artifact was included based on reasoning alone (see above).
Responsibilities
- Display full course metadata and certification linkage
- Render enroll or withdraw CTA based on current enrollment state
- Propagate optimistic state update and rollback on failure
- Confirm enrollment action before submitting
Interfaces
build(BuildContext, String courseId)
onEnroll(String courseId)
onWithdraw(String courseId)
Related Data Entities (2)
Data entities managed by this component