Contacts List Screen
Component Detail
User Interface
medium complexity
mobile
4
Dependencies
0
Dependents
2
Entities
0
Integrations
Description
Primary screen displaying all contacts associated with the current user's role context. Coordinators see their full peer mentor roster while peer mentors see their assigned contacts. The list renders role-appropriate cards and supports toggling between contact and peer mentor list modes via the view switcher widget.
contacts-list-screen
Responsibilities
- Render role-specific contact or peer mentor list
- Integrate search bar widget for real-time filtering
- Handle empty states and loading indicators
- Dispatch navigation to contact detail on card tap
- Support pull-to-refresh for remote data sync
Interfaces
build(BuildContext context)
onContactTapped(String contactId)
onRefresh()
onViewModeChanged(ViewMode mode)
onSearchQueryChanged(String query)
showEmptyState(String message)
showLoadingIndicator()
scrollToTop()
Relationships
Dependencies (4)
Components this component depends on
Related Data Entities (2)
Data entities managed by this component