How allenpaulgloria/legal_study_ai works
Legal Study AI · PH is a Flutter app for studying Philippine jurisprudence. The principal workflow is offline case search, case reading with grounded digest/ALAC assistance, and Socratic recitation; separate capabilities sync public legal sources and manage BYOK, model, theme, and local-cache settings. The README documents these subsystem relationships. Dart implementation excerpts were not provided, so edges reflect documented behavior rather than inspected call sites.
Main entry points: case_detail_screen.dart Case Reader · settings_screen.dart Study Settings · home_search_screen.dart Case Search · socratic_quiz_screen.dart Socratic Recitation
Components 16
Study App
- Flutter App
lib/main.dart - Case Search
lib/screens/home_search_screen.dart - Case Reader
lib/screens/case_detail_screen.dart - Socratic Recitation
lib/screens/socratic_quiz_screen.dart - App Providers
lib/providers/app_providers.dart
Jurisprudence Data
- Case Model
lib/models/legal_case.dart - Hybrid Search
lib/services/hybrid_search_service.dart - Jurisprudence Sync
lib/services/sc_data_service.dart - Offline Case Archive
lib/services/sc_data_service.dart
AI Learning
- Grounded Legal AI
lib/services/gemini_legal_service.dart
Configuration
- Study Settings
lib/screens/settings_screen.dart - Local Settings
lib/services/settings_service.dart - Material Theme
lib/theme/app_theme.dart
Other components
- Learner
- Public Legal Sources
- Gemini API
Connections 14
- Learner → Case Search: searches cases
README.md - Case Search → Hybrid Search: runs hybrid search
README.md - Learner → Case Reader: studies case
README.md - Case Reader → Hybrid Search: retrieves authorities
README.md - Case Reader → Grounded Legal AI: generates digest
README.md - Grounded Legal AI → Gemini API: requests generation
README.md - Case Reader → Offline Case Archive: caches digest
README.md - Learner → Socratic Recitation: practices recitation
README.md - Socratic Recitation → Gemini API: powers recitation
README.md - Jurisprudence Sync → Public Legal Sources: fetches legal data
README.md - Learner → Study Settings: configures study
README.md - Study Settings → Local Settings: stores preferences
README.md - Study Settings → Offline Case Archive: manages cache
README.md - Study Settings → Material Theme: selects appearance
README.md