How jgushe/prototipo works
Dopalytics is a local-first Flutter/Android app for task and schedule planning alongside screen-use monitoring. The main workflow gathers device-use and planning context, evaluates recommendation rules, applies cooldown, persists new recommendations, and notifies for higher severities; users review usage, trends, and tips in the app. The README documents the Dart/native monitoring bridge and feature scope, but most Dart implementations were not sampled, so those links reflect documented behavior rather than inspected calls.
Main entry points: ciclo_monitoreo_service.dart Monitoring cycle · database_helper.dart Local SQLite · main.dart App entry and navigation · uso_screen.dart Usage screen
Components 24
User interface
- App entry and navigation
lib/main.dart - Dashboard
lib/screens/dashboard_screen.dart - Task management
lib/screens/tareas_screen.dart - Usage screen
lib/screens/uso_screen.dart - Recommendations screen
lib/screens/recomendaciones_screen.dart - Configuration screen
lib/screens/configuracion_screen.dart - Appearance system
lib/theme/theme_controller.dart
Planning and profile
- Tasks and schedules
lib/models/tarea.dart - User profile
lib/models/perfil.dart
Usage and insights
- Usage capture
lib/services/uso_pantalla_service.dart - Shared usage reading
lib/services/lectura_uso_controller.dart - Schedule analysis
lib/services/analisis_horario_service.dart - Usage history and trends
lib/models/evolucion_semanal.dart
Recommendation engine
- Recommendation context
lib/services/contexto_recomendacion_service.dart - Rules and evaluation
lib/services/reglas/evaluador_reglas.dart - Duplicate suppression
lib/services/reglas/politica_cooldown.dart - Monitoring cycle
lib/services/ciclo_monitoreo_service.dart - Recommendation notifications
lib/services/recomendaciones_notificador.dart
Persistence and Android
- Local SQLite
lib/database/database_helper.dart - Android bridge and scheduler
android/app/src/main/kotlin/com/prototipo/prototipo_tesis/MainActivity.kt - Headless monitoring worker
android/app/src/main/kotlin/com/prototipo/prototipo_tesis/MonitoreoUsoWorker.kt
Other components
- App user
- Android usage statistics
- Local notifications
Connections 28
- App user → App entry and navigation: opens
README.md - App entry and navigation → Dashboard: navigates to
README.md - App user → Task management: plans tasks
README.md - Task management → Local SQLite: stores tasks
README.md - App user → Usage screen: reviews usage
README.md - Usage screen → Shared usage reading: requests reading
README.md - Shared usage reading → Usage capture: reuses capture
README.md - Usage capture → Android usage statistics: reads device stats
README.md - Usage screen → Usage history and trends: shows trends
README.md - Dashboard → Usage history and trends: shows metrics
README.md - App user → Recommendations screen: reviews tips
README.md - Monitoring cycle → Usage capture: captures usage
README.md - Monitoring cycle → Recommendation context: builds context
README.md - Recommendation context → Tasks and schedules: uses planned tasks
README.md - Recommendation context → Schedule analysis: uses schedule analysis
README.md - Monitoring cycle → Rules and evaluation: evaluates rules
README.md - Monitoring cycle → Duplicate suppression: filters duplicates
README.md - Monitoring cycle → Local SQLite: saves recommendations
README.md - Recommendations screen → Local SQLite: reads history
README.md - Recommendations screen → Local SQLite: stores ratings
README.md - Monitoring cycle → Recommendation notifications: dispatches alerts
README.md - Recommendation notifications → Local notifications: sends notifications
README.md - App user → Configuration screen: configures profile
README.md - Configuration screen → User profile: updates profile
README.md - Configuration screen → Appearance system: sets appearance
README.md - App entry and navigation → Android bridge and scheduler: bridges monitoring
README.md - Android bridge and scheduler → Headless monitoring worker: schedules work
README.md - Headless monitoring worker → Monitoring cycle: runs headless cycle
README.md