Activity Summary Widget
Component Detail
User Interface
low complexity
Shared Component
mobile
0
Dependencies
1
Dependents
0
Entities
0
Integrations
Description
A reusable card widget that displays a single aggregated metric — such as total hours, total contacts, or activity count — with an icon, label, value, and optional trend indicator. Used both on the statistics dashboard and on the role-specific home screen.
activity-summary-widget
Responsibilities
- Render a metric value with label and icon
- Show percentage change or trend arrow compared to previous period
- Support tap navigation to filtered detail view
Interfaces
ActivitySummaryWidget({required String label, required String value, IconData? icon, double? trendPercent, VoidCallback? onTap})
build(BuildContext)