User Interface medium complexity mobile
1
Dependencies
0
Dependents
4
Entities
0
Integrations

Description

A compact UI component accessible from the home screen and navigation that displays the user's current active role and provides a selection interface to switch between available roles (e.g., peer mentor and coordinator). Designed for minimal cognitive load with clear visual indicators of the active role and smooth transition animations.

Feature: Profile Switching

role-switcher-widget

Responsibilities

  • Display the currently active role with visual indicator
  • Present available roles for selection in a bottom sheet or dropdown
  • Trigger role switch event on selection and confirm transition to user
  • Adapt styling and iconography per role type for immediate recognition

Interfaces

build(BuildContext context)
showRolePicker()
onRoleSelected(UserRole role)
getCurrentRoleDisplay()
getAvailableRoles()

Relationships

Dependencies (1)

Components this component depends on