Context Switcher Widget
Component Detail
User Interface
low complexity
mobile
2
Dependencies
0
Dependents
0
Entities
0
Integrations
Description
A compact, persistent UI element displayed in the app header or settings that shows the currently active association and allows quick switching between the user's memberships without navigating away from the current screen. Ensures all subsequent actions are attributed to the newly selected association.
context-switcher-widget
Responsibilities
- Display the active association name and badge in the app header
- Trigger the association selection widget on tap
- Persist the selected context across navigation events
- Notify downstream BLoC state of context change
Interfaces
buildContextBadge(activeAssociation: UserAssociation)
onSwitchRequested()
updateActiveContext(newAssociationId: String)
listenToContextStream()
Relationships
Dependencies (2)
Components this component depends on