How zaintahir2025/lingu_ai works
LinguAI is a cross-platform Flutter language-learning app. A learner enters through authentication and onboarding, then uses the home dashboard to reach lessons, quizzes, spaced-repetition reviews, and an AI tutor; progress and profile features support that study loop. The graph also preserves the README’s major capabilities, including localization, speech, administration, and monetization. The supplied excerpts do not include Dart implementation files, so feature connections rely on README statements; backend implementation paths are absent from the tree and are not represented.
Main entry points: home Home Dashboard · learn Lessons and Vocabulary · quiz Quizzes · review Review Sessions
Components 24
App and Accounts
- App Entry
lib/main.dart - App Routing
lib/core/router/app_router.dart - Authentication
lib/features/auth - Onboarding
lib/features/onboarding - Home Dashboard
lib/features/home - User Profile
lib/features/user
Learning Experience
- Lessons and Vocabulary
lib/features/learn - Quizzes
lib/features/quiz - Review Sessions
lib/features/review - SM-2 Scheduling
lib/core/srs/srs_service.dart - AI Tutor
lib/features/tutor
Progress and Support
- Progress and Achievements
lib/features/progress - XP Hearts Streaks
lib/core/game_state/game_state_provider.dart - Admin Panel
lib/features/admin - Support
lib/features/progress/data/support_repository.dart
Platform Services
- Local Database
lib/core/database/database.dart - Network Client
lib/core/network/dio_client.dart - Speech Synthesis
lib/core/audio/tts_service.dart - English Urdu Localization
lib/l10n - Payment Management
lib/features/payment - Ad Service
lib/core/ads/ad_service.dart
Other components
- Learner
- Gemini API
- Stripe
Connections 26
- Learner → App Entry: opens
README.md - App Entry → App Routing: starts
- App Routing → Authentication: routes to
README.md - Authentication → Onboarding: continues to
- Onboarding → Home Dashboard: completes into
- Home Dashboard → Lessons and Vocabulary: opens lessons
README.md - Home Dashboard → Quizzes: opens quizzes
README.md - Home Dashboard → Review Sessions: opens review
README.md - Home Dashboard → AI Tutor: opens tutor
README.md - Lessons and Vocabulary → Local Database: uses local data
- Review Sessions → SM-2 Scheduling: schedules reviews
README.md - AI Tutor → Gemini API: requests tutoring
README.md - AI Tutor → Network Client: sends requests
- Home Dashboard → User Profile: offers profile
README.md - Quizzes → XP Hearts Streaks: updates progress
- Review Sessions → XP Hearts Streaks: updates progress
- Home Dashboard → Progress and Achievements: shows progress
README.md - Progress and Achievements → XP Hearts Streaks: uses study state
- Admin Panel → Support: manages tickets
README.md - Admin Panel → Network Client: accesses services
- Lessons and Vocabulary → Speech Synthesis: supports pronunciation
README.md - Quizzes → English Urdu Localization: localizes interface
README.md - Home Dashboard → English Urdu Localization: localizes interface
README.md - Payment Management → Stripe: handles checkout
README.md - Home Dashboard → Payment Management: offers subscription
- Home Dashboard → Ad Service: may show ads