# sengleaph/movie_cinema architecture

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

- Interactive diagram: https://gitdiagram.com/sengleaph/movie_cinema
- Repository: https://github.com/sengleaph/movie_cinema

## Overview

The tree suggests a Flutter mobile app centered on movie discovery and cinema information, alongside authentication, profile, transfer, and a snake-themed feature. The likely user flow is to enter the app, browse movie and cinema screens, and inspect movie or location details. The README is only Flutter boilerplate, and the available source excerpts contain no Dart code, so component relationships below are tentative; dashed edges mark unverified links.

Main entry points: [`lib/app/view/navigation/navigation_bar.dart`](https://github.com/sengleaph/movie_cinema/blob/main/lib/app/view/navigation/navigation_bar.dart) (Navigation), [`lib/app/view/home_page/home_page.dart`](https://github.com/sengleaph/movie_cinema/blob/main/lib/app/view/home_page/home_page.dart) (Home screen), [`lib/main.dart`](https://github.com/sengleaph/movie_cinema/blob/main/lib/main.dart) (App entry), [`lib/app/view_model/feature_movie_viewmodel/feature_mv_vm.dart`](https://github.com/sengleaph/movie_cinema/blob/main/lib/app/view_model/feature_movie_viewmodel/feature_mv_vm.dart) (Movie view model)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["App shell"]
  node_entry["App entry<br/>[main.dart]"]
  node_navigation["Navigation"]
end

subgraph group_movies["Movie discovery"]
  node_home["Home screen<br/>[home_page.dart]"]
  node_movie_vm["Movie view model<br/>[feature_mv_vm.dart]"]
  node_movie_repo["Movie repository<br/>[feature_movie.dart]"]
  node_movie_model["Movie model<br/>[feature_movie.dart]"]
  node_movie_details["Movie details<br/>[movie_detail.dart]"]
  node_trailer["Movie trailer"]
end

subgraph group_cinemas["Cinema information"]
  node_location["Cinema locations<br/>[location_page.dart]"]
  node_cinema_vm["Cinema view model"]
  node_cinema_repo["Cinema repository"]
  node_cinema_model["Cinema model<br/>[cinema_model.dart]"]
end

subgraph group_account["Account screens"]
  node_login["Login<br/>[login_page.dart]"]
  node_signup["Sign up<br/>[signup_page.dart]"]
  node_profile["Profile<br/>[profile_page.dart]"]
  node_transfer["Transfer"]
end

subgraph group_snake["Snake feature"]
  node_snake["Snake screen<br/>[snake_page.dart]"]
  node_snake_vm["Snake view model"]
  node_snake_model["Snake model<br/>[snake_model.dart]"]
end

node_user(("User"))

node_user -.->|"opens"| node_entry
node_entry -.->|"starts"| node_navigation
node_navigation -.->|"selects"| node_home
node_home -.->|"loads movies"| node_movie_vm
node_movie_vm -.->|"requests data"| node_movie_repo
node_movie_repo -.->|"uses model"| node_movie_model
node_home -.->|"opens details"| node_movie_details
node_home -.->|"opens trailer"| node_trailer
node_navigation -.->|"selects"| node_location
node_location -.->|"loads cinemas"| node_cinema_vm
node_cinema_vm -.->|"requests data"| node_cinema_repo
node_cinema_repo -.->|"uses model"| node_cinema_model
node_navigation -.->|"selects"| node_login
node_login -.->|"offers registration"| node_signup
node_navigation -.->|"selects"| node_profile
node_navigation -.->|"selects"| node_transfer
node_navigation -.->|"selects"| node_snake
node_snake -.->|"uses"| node_snake_vm
node_snake_vm -.->|"uses"| node_snake_model

click node_entry "https://github.com/sengleaph/movie_cinema/blob/main/lib/main.dart"
click node_navigation "https://github.com/sengleaph/movie_cinema/blob/main/lib/app/view/navigation/navigation_bar.dart"
click node_home "https://github.com/sengleaph/movie_cinema/blob/main/lib/app/view/home_page/home_page.dart"
click node_movie_vm "https://github.com/sengleaph/movie_cinema/blob/main/lib/app/view_model/feature_movie_viewmodel/feature_mv_vm.dart"
click node_movie_repo "https://github.com/sengleaph/movie_cinema/blob/main/lib/app/repository/feature_movie/feature_movie.dart"
click node_movie_model "https://github.com/sengleaph/movie_cinema/blob/main/lib/app/model/feature_movie/feature_movie.dart"
click node_movie_details "https://github.com/sengleaph/movie_cinema/blob/main/lib/app/view/home_page/widget/details/movie_detail.dart"
click node_trailer "https://github.com/sengleaph/movie_cinema/blob/main/lib/app/view/trailler/video_trailler.dart"
click node_location "https://github.com/sengleaph/movie_cinema/blob/main/lib/app/view/location/location_page.dart"
click node_cinema_vm "https://github.com/sengleaph/movie_cinema/blob/main/lib/app/view_model/cinema_viewmodel/cinema_viewmodel.dart"
click node_cinema_repo "https://github.com/sengleaph/movie_cinema/blob/main/lib/app/repository/cinema_repository/cinema_repository.dart"
click node_cinema_model "https://github.com/sengleaph/movie_cinema/blob/main/lib/app/model/cinema/cinema_model.dart"
click node_login "https://github.com/sengleaph/movie_cinema/blob/main/lib/app/view/auth/login_page.dart"
click node_signup "https://github.com/sengleaph/movie_cinema/blob/main/lib/app/view/auth/signup_page.dart"
click node_profile "https://github.com/sengleaph/movie_cinema/blob/main/lib/app/view/profile/profile_page.dart"
click node_transfer "https://github.com/sengleaph/movie_cinema/blob/main/lib/app/view/transfer/trainsfer_page.dart"
click node_snake "https://github.com/sengleaph/movie_cinema/blob/main/lib/app/view/snake/snake_page.dart"
click node_snake_vm "https://github.com/sengleaph/movie_cinema/blob/main/lib/app/view_model/snake_viewmodel/snake_viewmodel.dart"
click node_snake_model "https://github.com/sengleaph/movie_cinema/blob/main/lib/app/model/snake/snake_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_navigation,node_user toneBlue
class node_home,node_movie_vm,node_movie_repo,node_movie_model,node_movie_details,node_trailer toneAmber
class node_location,node_cinema_vm,node_cinema_repo,node_cinema_model toneMint
class node_login,node_signup,node_profile,node_transfer toneRose
class node_snake,node_snake_vm,node_snake_model toneIndigo
```

## Components

### App shell

- [App entry](https://github.com/sengleaph/movie_cinema/blob/main/lib/main.dart): `lib/main.dart`
- [Navigation](https://github.com/sengleaph/movie_cinema/blob/main/lib/app/view/navigation/navigation_bar.dart): `lib/app/view/navigation/navigation_bar.dart`

### Movie discovery

- [Home screen](https://github.com/sengleaph/movie_cinema/blob/main/lib/app/view/home_page/home_page.dart): `lib/app/view/home_page/home_page.dart`
- [Movie view model](https://github.com/sengleaph/movie_cinema/blob/main/lib/app/view_model/feature_movie_viewmodel/feature_mv_vm.dart): `lib/app/view_model/feature_movie_viewmodel/feature_mv_vm.dart`
- [Movie repository](https://github.com/sengleaph/movie_cinema/blob/main/lib/app/repository/feature_movie/feature_movie.dart): `lib/app/repository/feature_movie/feature_movie.dart`
- [Movie model](https://github.com/sengleaph/movie_cinema/blob/main/lib/app/model/feature_movie/feature_movie.dart): `lib/app/model/feature_movie/feature_movie.dart`
- [Movie details](https://github.com/sengleaph/movie_cinema/blob/main/lib/app/view/home_page/widget/details/movie_detail.dart): `lib/app/view/home_page/widget/details/movie_detail.dart`
- [Movie trailer](https://github.com/sengleaph/movie_cinema/blob/main/lib/app/view/trailler/video_trailler.dart): `lib/app/view/trailler/video_trailler.dart`

### Cinema information

- [Cinema locations](https://github.com/sengleaph/movie_cinema/blob/main/lib/app/view/location/location_page.dart): `lib/app/view/location/location_page.dart`
- [Cinema view model](https://github.com/sengleaph/movie_cinema/blob/main/lib/app/view_model/cinema_viewmodel/cinema_viewmodel.dart): `lib/app/view_model/cinema_viewmodel/cinema_viewmodel.dart`
- [Cinema repository](https://github.com/sengleaph/movie_cinema/blob/main/lib/app/repository/cinema_repository/cinema_repository.dart): `lib/app/repository/cinema_repository/cinema_repository.dart`
- [Cinema model](https://github.com/sengleaph/movie_cinema/blob/main/lib/app/model/cinema/cinema_model.dart): `lib/app/model/cinema/cinema_model.dart`

### Account screens

- [Login](https://github.com/sengleaph/movie_cinema/blob/main/lib/app/view/auth/login_page.dart): `lib/app/view/auth/login_page.dart`
- [Sign up](https://github.com/sengleaph/movie_cinema/blob/main/lib/app/view/auth/signup_page.dart): `lib/app/view/auth/signup_page.dart`
- [Profile](https://github.com/sengleaph/movie_cinema/blob/main/lib/app/view/profile/profile_page.dart): `lib/app/view/profile/profile_page.dart`
- [Transfer](https://github.com/sengleaph/movie_cinema/blob/main/lib/app/view/transfer/trainsfer_page.dart): `lib/app/view/transfer/trainsfer_page.dart`

### Snake feature

- [Snake screen](https://github.com/sengleaph/movie_cinema/blob/main/lib/app/view/snake/snake_page.dart): `lib/app/view/snake/snake_page.dart`
- [Snake view model](https://github.com/sengleaph/movie_cinema/blob/main/lib/app/view_model/snake_viewmodel/snake_viewmodel.dart): `lib/app/view_model/snake_viewmodel/snake_viewmodel.dart`
- [Snake model](https://github.com/sengleaph/movie_cinema/blob/main/lib/app/model/snake/snake_model.dart): `lib/app/model/snake/snake_model.dart`

### Other components

- **User**

## Connections

- User → App entry: opens
- App entry → Navigation: starts
- Navigation → Home screen: selects
- Home screen → Movie view model: loads movies
- Movie view model → Movie repository: requests data
- Movie repository → Movie model: uses model
- Home screen → Movie details: opens details
- Home screen → Movie trailer: opens trailer
- Navigation → Cinema locations: selects
- Cinema locations → Cinema view model: loads cinemas
- Cinema view model → Cinema repository: requests data
- Cinema repository → Cinema model: uses model
- Navigation → Login: selects
- Login → Sign up: offers registration
- Navigation → Profile: selects
- Navigation → Transfer: selects
- Navigation → Snake screen: selects
- Snake screen → Snake view model: uses
- Snake view model → Snake model: uses
