Course Enrollment BLoC
Component Detail
Service Layer
medium complexity
mobile
1
Dependencies
0
Dependents
2
Entities
0
Integrations
Description
Flutter BLoC managing enrollment state on the mobile client. Handles optimistic UI updates, error recovery, and loading states for enroll, unenroll, and list operations. Drives reactive UI updates across the Course List and Detail screens.
course-enrollment-bloc
Responsibilities
- Manage enrollment state machine: idle, loading, enrolled, waitlisted, error
- Issue optimistic UI updates on enroll/unenroll and roll back on API failure
- Coordinate course list refresh after enrollment state changes
- Cache enrollment status locally to support fast screen transitions
Interfaces
EnrollEvent
UnenrollEvent
LoadCourseListEvent
EnrollmentState
emit(state)
Relationships
Related Data Entities (2)
Data entities managed by this component