# hichembtb/quran_app architecture

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

- Interactive diagram: https://gitdiagram.com/hichembtb/quran_app
- Repository: https://github.com/hichembtb/quran_app

## Overview

This is a Flutter mobile Quran app. The likely user-facing areas are Quran reading, audio playback, bookmarks/PDF reading, prayer information, and a Qibla compass; the tree also shows API, local-storage, audio, and PDF services. The README only identifies a starter Flutter project, and the sampled source contains no Dart runtime code, so feature flows and service connections cannot be verified. Dashed edges with null evidence mark tentative relationships, not inspected call paths.

Main entry points: [`lib/view/screens/home_page.dart`](https://github.com/hichembtb/quran_app/blob/master/lib/view/screens/home_page.dart) (Home screen), [`lib/view/screens/quran_list.dart`](https://github.com/hichembtb/quran_app/blob/master/lib/view/screens/quran_list.dart) (Quran list), [`lib/view/screens/quran_audio.dart`](https://github.com/hichembtb/quran_app/blob/master/lib/view/screens/quran_audio.dart) (Audio screen), [`lib/view/screens/bookmark_list.dart`](https://github.com/hichembtb/quran_app/blob/master/lib/view/screens/bookmark_list.dart) (Bookmarks)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["App shell"]
  node_entry["App entry<br/>[main.dart]"]
  node_home["Home screen<br/>[home_page.dart]"]
  node_dashboard["Dashboard<br/>[dashboard.dart]"]
end

subgraph group_quran["Quran features"]
  node_quran_list["Quran list<br/>[quran_list.dart]"]
  node_read_soura["Sura reader<br/>[read_soura.dart]"]
  node_audio_screen["Audio screen<br/>[quran_audio.dart]"]
  node_audio_controller["Audio controller"]
  node_audio_widgets["Audio controls"]
  node_bookmark_screen["Bookmarks<br/>[bookmark_list.dart]"]
  node_bookmark_controller["Bookmark controller"]
  node_pdf_reader["Bookmark PDF reader"]
end

subgraph group_daily["Prayer and Qibla"]
  node_prayer_screen["Prayer list<br/>[prayer_list.dart]"]
  node_prayer_controller["Prayer controller"]
  node_qibla["Qibla compass<br/>[qibla.dart]"]
end

subgraph group_services["Data and services"]
  node_api["API service<br/>[api_services.dart]"]
  node_audio_service["Audio service<br/>[audio_service.dart]"]
  node_hive["Hive service<br/>[hive_service.dart]"]
  node_pdf_service["PDF service<br/>[pdf_service.dart]"]
  node_models["App models<br/>[quran_model.dart]"]
  node_bookmark_model["Bookmark model"]
end

node_user(("Mobile user"))

node_user -.->|"opens"| node_entry
node_entry -.->|"starts"| node_home
node_home -.->|"shows"| node_dashboard
node_home -.->|"navigates"| node_quran_list
node_quran_list -.->|"opens"| node_read_soura
node_home -.->|"navigates"| node_audio_screen
node_audio_screen -.->|"uses"| node_audio_controller
node_audio_screen -.->|"shows"| node_audio_widgets
node_audio_controller -.->|"uses"| node_audio_service
node_home -.->|"navigates"| node_bookmark_screen
node_bookmark_screen -.->|"uses"| node_bookmark_controller
node_bookmark_screen -.->|"opens"| node_pdf_reader
node_bookmark_controller -.->|"uses"| node_hive
node_bookmark_controller -.->|"uses"| node_bookmark_model
node_pdf_reader -.->|"uses"| node_pdf_service
node_home -.->|"navigates"| node_prayer_screen
node_prayer_screen -.->|"uses"| node_prayer_controller
node_home -.->|"navigates"| node_qibla
node_quran_list -.->|"uses"| node_api
node_quran_list -.->|"uses"| node_models

click node_entry "https://github.com/hichembtb/quran_app/blob/master/lib/main.dart"
click node_home "https://github.com/hichembtb/quran_app/blob/master/lib/view/screens/home_page.dart"
click node_dashboard "https://github.com/hichembtb/quran_app/blob/master/lib/view/widgets/dashboard.dart"
click node_quran_list "https://github.com/hichembtb/quran_app/blob/master/lib/view/screens/quran_list.dart"
click node_read_soura "https://github.com/hichembtb/quran_app/blob/master/lib/view/widgets/quran_widgets/read_soura.dart"
click node_audio_screen "https://github.com/hichembtb/quran_app/blob/master/lib/view/screens/quran_audio.dart"
click node_audio_controller "https://github.com/hichembtb/quran_app/blob/master/lib/controllers/quran_audio_controller.dart"
click node_audio_widgets "https://github.com/hichembtb/quran_app/tree/master/lib/view/widgets/quran_audio_widgets.dart"
click node_bookmark_screen "https://github.com/hichembtb/quran_app/blob/master/lib/view/screens/bookmark_list.dart"
click node_bookmark_controller "https://github.com/hichembtb/quran_app/blob/master/lib/controllers/bookmark_controller.dart"
click node_pdf_reader "https://github.com/hichembtb/quran_app/blob/master/lib/view/widgets/book_mark_widget/book_mark_pdf_read.dart"
click node_prayer_screen "https://github.com/hichembtb/quran_app/blob/master/lib/view/screens/prayer_list.dart"
click node_prayer_controller "https://github.com/hichembtb/quran_app/blob/master/lib/controllers/prayer_controller.dart"
click node_qibla "https://github.com/hichembtb/quran_app/blob/master/lib/view/qibla/qibla.dart"
click node_api "https://github.com/hichembtb/quran_app/blob/master/lib/core/services/api/api_services.dart"
click node_audio_service "https://github.com/hichembtb/quran_app/blob/master/lib/core/services/audio_service.dart"
click node_hive "https://github.com/hichembtb/quran_app/blob/master/lib/core/services/hive_service.dart"
click node_pdf_service "https://github.com/hichembtb/quran_app/blob/master/lib/core/services/pdf_service.dart"
click node_models "https://github.com/hichembtb/quran_app/blob/master/lib/models/quran_model.dart"
click node_bookmark_model "https://github.com/hichembtb/quran_app/blob/master/lib/models/bookmark_model.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_home,node_dashboard,node_user toneBlue
class node_quran_list,node_read_soura,node_audio_screen,node_audio_controller,node_audio_widgets,node_bookmark_screen,node_bookmark_controller,node_pdf_reader toneAmber
class node_prayer_screen,node_prayer_controller,node_qibla toneMint
class node_api,node_audio_service,node_hive,node_pdf_service,node_models,node_bookmark_model toneRose
```

## Components

### App shell

- [App entry](https://github.com/hichembtb/quran_app/blob/master/lib/main.dart): `lib/main.dart`
- [Home screen](https://github.com/hichembtb/quran_app/blob/master/lib/view/screens/home_page.dart): `lib/view/screens/home_page.dart`
- [Dashboard](https://github.com/hichembtb/quran_app/blob/master/lib/view/widgets/dashboard.dart): `lib/view/widgets/dashboard.dart`

### Quran features

- [Quran list](https://github.com/hichembtb/quran_app/blob/master/lib/view/screens/quran_list.dart): `lib/view/screens/quran_list.dart`
- [Sura reader](https://github.com/hichembtb/quran_app/blob/master/lib/view/widgets/quran_widgets/read_soura.dart): `lib/view/widgets/quran_widgets/read_soura.dart`
- [Audio screen](https://github.com/hichembtb/quran_app/blob/master/lib/view/screens/quran_audio.dart): `lib/view/screens/quran_audio.dart`
- [Audio controller](https://github.com/hichembtb/quran_app/blob/master/lib/controllers/quran_audio_controller.dart): `lib/controllers/quran_audio_controller.dart`
- [Audio controls](https://github.com/hichembtb/quran_app/tree/master/lib/view/widgets/quran_audio_widgets.dart): `lib/view/widgets/quran_audio_widgets.dart`
- [Bookmarks](https://github.com/hichembtb/quran_app/blob/master/lib/view/screens/bookmark_list.dart): `lib/view/screens/bookmark_list.dart`
- [Bookmark controller](https://github.com/hichembtb/quran_app/blob/master/lib/controllers/bookmark_controller.dart): `lib/controllers/bookmark_controller.dart`
- [Bookmark PDF reader](https://github.com/hichembtb/quran_app/blob/master/lib/view/widgets/book_mark_widget/book_mark_pdf_read.dart): `lib/view/widgets/book_mark_widget/book_mark_pdf_read.dart`

### Prayer and Qibla

- [Prayer list](https://github.com/hichembtb/quran_app/blob/master/lib/view/screens/prayer_list.dart): `lib/view/screens/prayer_list.dart`
- [Prayer controller](https://github.com/hichembtb/quran_app/blob/master/lib/controllers/prayer_controller.dart): `lib/controllers/prayer_controller.dart`
- [Qibla compass](https://github.com/hichembtb/quran_app/blob/master/lib/view/qibla/qibla.dart): `lib/view/qibla/qibla.dart`

### Data and services

- [API service](https://github.com/hichembtb/quran_app/blob/master/lib/core/services/api/api_services.dart): `lib/core/services/api/api_services.dart`
- [Audio service](https://github.com/hichembtb/quran_app/blob/master/lib/core/services/audio_service.dart): `lib/core/services/audio_service.dart`
- [Hive service](https://github.com/hichembtb/quran_app/blob/master/lib/core/services/hive_service.dart): `lib/core/services/hive_service.dart`
- [PDF service](https://github.com/hichembtb/quran_app/blob/master/lib/core/services/pdf_service.dart): `lib/core/services/pdf_service.dart`
- [App models](https://github.com/hichembtb/quran_app/blob/master/lib/models/quran_model.dart): `lib/models/quran_model.dart`
- [Bookmark model](https://github.com/hichembtb/quran_app/blob/master/lib/models/bookmark_model.dart): `lib/models/bookmark_model.dart`

### Other components

- **Mobile user**

## Connections

- Mobile user → App entry: opens
- App entry → Home screen: starts
- Home screen → Dashboard: shows
- Home screen → Quran list: navigates
- Quran list → Sura reader: opens
- Home screen → Audio screen: navigates
- Audio screen → Audio controller: uses
- Audio screen → Audio controls: shows
- Audio controller → Audio service: uses
- Home screen → Bookmarks: navigates
- Bookmarks → Bookmark controller: uses
- Bookmarks → Bookmark PDF reader: opens
- Bookmark controller → Hive service: uses
- Bookmark controller → Bookmark model: uses
- Bookmark PDF reader → PDF service: uses
- Home screen → Prayer list: navigates
- Prayer list → Prayer controller: uses
- Home screen → Qibla compass: navigates
- Quran list → API service: uses
- Quran list → App models: uses
