Proxy Activity BLoC
Component Detail
Data Layer
medium complexity
mobile
1
Dependencies
0
Dependents
0
Entities
0
Integrations
Description
Flutter BLoC state manager for the proxy registration flow. Extends the standard activity form BLoC with an injected 'on-behalf-of' parameter that carries the selected peer mentor's ID through the multi-step form state. Manages step transitions, form validation state, and submission lifecycle for the proxy-specific flow.
proxy-activity-bloc
Responsibilities
- Manage multi-step form state with peer mentor selector as step zero
- Carry proxy_user_id through all form steps without losing state
- Emit loading, success, and error states to the proxy registration screen
- Reset state cleanly after successful submission or cancellation
Interfaces
selectPeerMentor(mentorId: string, mentorName: string): void
updateFormField(field: string, value: dynamic): void
advanceStep(): void
retreatStep(): void
submitProxyRegistration(): void
resetState(): void
getProxyActivityState(): ProxyActivityState