Overview
The Admin Dashboard provides a comprehensive, real-time view of your platform’s performance with interactive metrics, charts, and activity feeds.
Dashboard Components
Welcome Section
The dashboard greets administrators with a personalized welcome message that adapts based on time of day:admin/presentation/screens/admin_dashboard_tab.dart
Real-Time Metrics
The dashboard displays four key metric cards, all clickable for detailed views:Total Users
Main Value: Total registered usersSubtitle: Active users countClick Action: Navigate to User Management
Trip Requests
Main Value: Total trip requestsSubtitle: Requests todayClick Action: Navigate to Statistics tab
Platform Earnings
Main Value: Total earningsSubtitle: Today’s earningsClick Action: Navigate to Statistics tab
Pending Reports
Main Value: Pending reports countSubtitle: Requires attentionClick Action: Navigate to Audit Logs
Metric Card Implementation
admin/presentation/screens/admin_dashboard_tab.dart
Dashboard Data Structure
The dashboard receives comprehensive statistics from the backend:Platform Earnings
A dedicated section shows platform commission earnings from transport companies:admin/presentation/screens/admin_dashboard_tab.dart
Recent Activity Feed
The dashboard displays the latest system activities with color-coded icons:- Login Events
- Registration
- Errors
- Updates
Icon: Login roundedColor: Green (#11998e)Example: “Usuario inició sesión”
Activity Item Implementation
admin/presentation/screens/admin_dashboard_tab.dart
Time Formatting
Activities are displayed with human-readable relative timestamps:admin/presentation/screens/admin_dashboard_tab.dart
Number Formatting
Large numbers are automatically formatted for readability:admin/presentation/screens/admin_dashboard_tab.dart
- 1,250 → “1.3K”
- 125,000 → “125.0K”
- 2,500,000 → “2.5M”
Loading States
The dashboard implements shimmer loading for a smooth user experience:All dashboard data automatically refreshes when you pull down on the screen or navigate back to the Dashboard tab.
Refresh Functionality
1
Pull to Refresh
Swipe down on the dashboard to manually refresh all metrics
2
Auto Refresh
Dashboard data refreshes when navigating back from other sections
3
Loading State
Shimmer animation displays during data fetch
Navigation Actions
Dashboard cards provide quick navigation:Best Practices
Monitor Daily
Monitor Daily
Check the dashboard daily to stay informed about platform activity, user growth, and pending tasks.
Review Activity Feed
Review Activity Feed
Regularly review recent activities to catch unusual patterns or errors early.
Track KPIs
Track KPIs
Monitor key metrics like active users, completed trips, and earnings trends.
Quick Actions
Quick Actions
Use clickable metric cards for quick navigation to relevant management sections.
Related Features
Statistics
Detailed analytics and charts
User Management
Manage platform users
Audit Logs
View all system activities