# malvin-g-g/mobileprogramming_uas architecture

> Architecture diagram of the GitHub repository malvin-g-g/mobileprogramming_uas, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-25). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/malvin-g-g/mobileprogramming_uas
- Repository: https://github.com/malvin-g-g/mobileprogramming_uas

## Overview

MultiLingo is a Flutter language-learning app. The likely user journey is app launch, account/onboarding and language selection, then learning through a lesson path, with progress retained. The tree supports distinct auth, onboarding, language, lesson, home, and progress areas, plus routing and persistence. Dart implementation excerpts were not provided and the README documents no detailed runtime wiring, so inferred connections are dashed and uncited; native platform launchers are omitted as scaffolding.

Main entry points: [`lib/feature/onboarding/{screens,providers}`](https://github.com/malvin-g-g/mobileprogramming_uas/tree/main/lib/feature/onboarding/%7Bscreens%2Cproviders%7D) (Onboarding), [`lib/feature/lesson/screens/lesson_screen.dart`](https://github.com/malvin-g-g/mobileprogramming_uas/blob/main/lib/feature/lesson/screens/lesson_screen.dart) (Lesson Experience), [`lib/main.dart`](https://github.com/malvin-g-g/mobileprogramming_uas/blob/main/lib/main.dart) (Flutter Entry), [`lib/app.dart`](https://github.com/malvin-g-g/mobileprogramming_uas/blob/main/lib/app.dart) (App Shell)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_application["App Flow"]
  node_entry["Flutter Entry<br/>[main.dart]"]
  node_shell["App Shell<br/>[app.dart]"]
  node_router["App Router<br/>[app_router.dart]"]
  node_splash["Splash Screen<br/>[splash_screen.dart]"]
end

subgraph group_setup["Account Setup"]
  node_auth["Authentication"]
  node_onboarding["Onboarding"]
  node_language["Language Selection"]
end

subgraph group_learning["Learning"]
  node_home["Learning Home<br/>[home_screen.dart]"]
  node_learning_path["Learning Path<br/>[learning_path.dart]"]
  node_node_sheet["Lesson Node Detail<br/>[node_sheet.dart]"]
  node_lesson["Lesson Experience<br/>[lesson_screen.dart]"]
  node_catalog["Lesson Catalog"]
end

subgraph group_state["App State"]
  node_progress["Progress Tracking"]
  node_auth_repo["Auth Repository"]
  node_progress_repo["Progress Repository"]
  node_database[("Local Database<br/>[app_database.dart]")]
  node_preferences["Shared Preferences"]
end

node_learner(("Learner"))

node_learner -.->|"launches"| node_entry
node_entry -.->|"starts"| node_shell
node_shell -.->|"uses routes"| node_router
node_router -.->|"routes to"| node_splash
node_learner -.->|"signs in"| node_auth
node_learner -.->|"sets up"| node_onboarding
node_onboarding -.->|"selects language"| node_language
node_learner -.->|"opens learning"| node_home
node_home -.->|"shows path"| node_learning_path
node_learning_path -.->|"opens node"| node_node_sheet
node_node_sheet -.->|"starts lesson"| node_lesson
node_lesson -.->|"uses catalog"| node_catalog
node_lesson -.->|"updates progress"| node_progress
node_progress -.->|"uses repository"| node_progress_repo
node_progress_repo -.->|"persists state"| node_database
node_auth -.->|"uses repository"| node_auth_repo
node_onboarding -.->|"stores settings"| node_preferences

click node_entry "https://github.com/malvin-g-g/mobileprogramming_uas/blob/main/lib/main.dart"
click node_shell "https://github.com/malvin-g-g/mobileprogramming_uas/blob/main/lib/app.dart"
click node_router "https://github.com/malvin-g-g/mobileprogramming_uas/blob/main/lib/core/router/app_router.dart"
click node_splash "https://github.com/malvin-g-g/mobileprogramming_uas/blob/main/lib/feature/splash/screens/splash_screen.dart"
click node_auth "https://github.com/malvin-g-g/mobileprogramming_uas/tree/main/lib/feature/auth"
click node_onboarding "https://github.com/malvin-g-g/mobileprogramming_uas/tree/main/lib/feature/onboarding/%7Bscreens%2Cproviders%7D"
click node_language "https://github.com/malvin-g-g/mobileprogramming_uas/tree/main/lib/feature/languages/language_select"
click node_home "https://github.com/malvin-g-g/mobileprogramming_uas/blob/main/lib/feature/home/screen/home_screen.dart"
click node_learning_path "https://github.com/malvin-g-g/mobileprogramming_uas/blob/main/lib/feature/home/widgets/learning_path.dart"
click node_node_sheet "https://github.com/malvin-g-g/mobileprogramming_uas/blob/main/lib/feature/home/widgets/node_sheet.dart"
click node_lesson "https://github.com/malvin-g-g/mobileprogramming_uas/blob/main/lib/feature/lesson/screens/lesson_screen.dart"
click node_catalog "https://github.com/malvin-g-g/mobileprogramming_uas/blob/main/lib/feature/lesson/data/lesson_catalog.dart"
click node_progress "https://github.com/malvin-g-g/mobileprogramming_uas/tree/main/lib/feature/progress"
click node_auth_repo "https://github.com/malvin-g-g/mobileprogramming_uas/blob/main/lib/feature/auth/data/auth_repository.dart"
click node_progress_repo "https://github.com/malvin-g-g/mobileprogramming_uas/blob/main/lib/feature/progress/data/progress_repository.dart"
click node_database "https://github.com/malvin-g-g/mobileprogramming_uas/blob/main/lib/core/database/app_database.dart"
click node_preferences "https://github.com/malvin-g-g/mobileprogramming_uas/blob/main/lib/core/providers/shared_prefs_provider.dart"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_entry,node_shell,node_router,node_splash toneBlue
class node_auth,node_onboarding,node_language toneAmber
class node_home,node_learning_path,node_node_sheet,node_lesson,node_catalog toneMint
class node_progress,node_auth_repo,node_progress_repo,node_database,node_preferences toneRose
class node_learner toneIndigo
```

## Components

### App Flow

- [Flutter Entry](https://github.com/malvin-g-g/mobileprogramming_uas/blob/main/lib/main.dart): `lib/main.dart`
- [App Shell](https://github.com/malvin-g-g/mobileprogramming_uas/blob/main/lib/app.dart): `lib/app.dart`
- [App Router](https://github.com/malvin-g-g/mobileprogramming_uas/blob/main/lib/core/router/app_router.dart): `lib/core/router/app_router.dart`
- [Splash Screen](https://github.com/malvin-g-g/mobileprogramming_uas/blob/main/lib/feature/splash/screens/splash_screen.dart): `lib/feature/splash/screens/splash_screen.dart`

### Account Setup

- [Authentication](https://github.com/malvin-g-g/mobileprogramming_uas/tree/main/lib/feature/auth): `lib/feature/auth`
- [Onboarding](https://github.com/malvin-g-g/mobileprogramming_uas/tree/main/lib/feature/onboarding/%7Bscreens%2Cproviders%7D): `lib/feature/onboarding/{screens,providers}`
- [Language Selection](https://github.com/malvin-g-g/mobileprogramming_uas/tree/main/lib/feature/languages/language_select): `lib/feature/languages/language_select`

### Learning

- [Learning Home](https://github.com/malvin-g-g/mobileprogramming_uas/blob/main/lib/feature/home/screen/home_screen.dart): `lib/feature/home/screen/home_screen.dart`
- [Learning Path](https://github.com/malvin-g-g/mobileprogramming_uas/blob/main/lib/feature/home/widgets/learning_path.dart): `lib/feature/home/widgets/learning_path.dart`
- [Lesson Node Detail](https://github.com/malvin-g-g/mobileprogramming_uas/blob/main/lib/feature/home/widgets/node_sheet.dart): `lib/feature/home/widgets/node_sheet.dart`
- [Lesson Experience](https://github.com/malvin-g-g/mobileprogramming_uas/blob/main/lib/feature/lesson/screens/lesson_screen.dart): `lib/feature/lesson/screens/lesson_screen.dart`
- [Lesson Catalog](https://github.com/malvin-g-g/mobileprogramming_uas/blob/main/lib/feature/lesson/data/lesson_catalog.dart): `lib/feature/lesson/data/lesson_catalog.dart`

### App State

- [Progress Tracking](https://github.com/malvin-g-g/mobileprogramming_uas/tree/main/lib/feature/progress): `lib/feature/progress`
- [Auth Repository](https://github.com/malvin-g-g/mobileprogramming_uas/blob/main/lib/feature/auth/data/auth_repository.dart): `lib/feature/auth/data/auth_repository.dart`
- [Progress Repository](https://github.com/malvin-g-g/mobileprogramming_uas/blob/main/lib/feature/progress/data/progress_repository.dart): `lib/feature/progress/data/progress_repository.dart`
- [Local Database](https://github.com/malvin-g-g/mobileprogramming_uas/blob/main/lib/core/database/app_database.dart): `lib/core/database/app_database.dart`
- [Shared Preferences](https://github.com/malvin-g-g/mobileprogramming_uas/blob/main/lib/core/providers/shared_prefs_provider.dart): `lib/core/providers/shared_prefs_provider.dart`

### Other components

- **Learner**

## Connections

- Learner → Flutter Entry: launches
- Flutter Entry → App Shell: starts
- App Shell → App Router: uses routes
- App Router → Splash Screen: routes to
- Learner → Authentication: signs in
- Learner → Onboarding: sets up
- Onboarding → Language Selection: selects language
- Learner → Learning Home: opens learning
- Learning Home → Learning Path: shows path
- Learning Path → Lesson Node Detail: opens node
- Lesson Node Detail → Lesson Experience: starts lesson
- Lesson Experience → Lesson Catalog: uses catalog
- Lesson Experience → Progress Tracking: updates progress
- Progress Tracking → Progress Repository: uses repository
- Progress Repository → Local Database: persists state
- Authentication → Auth Repository: uses repository
- Onboarding → Shared Preferences: stores settings
