# lyrixkanxa-glitch/gallery architecture

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

- Interactive diagram: https://gitdiagram.com/lyrixkanxa-glitch/gallery
- Repository: https://github.com/lyrixkanxa-glitch/gallery

## Overview

This is a Flutter gallery app. Its likely user journey starts at the app entry point, reaches gallery browsing, and can branch to photo details, AI chat, or a secure gallery. The tree also identifies an AI service, secure-storage helper, and shared background widget. The README is only Flutter boilerplate, and the supplied source excerpts do not include Dart code, so the relationships below are dashed and unevidenced rather than claims of verified calls or routing.

Main entry points: [`lib/pages/home_page.dart`](https://github.com/lyrixkanxa-glitch/gallery/blob/main/lib/pages/home_page.dart) (Home page), [`lib/pages/gallery_home_screen.dart`](https://github.com/lyrixkanxa-glitch/gallery/blob/main/lib/pages/gallery_home_screen.dart) (Gallery home), [`lib/secure_photoes/secure_gallery_screen.dart`](https://github.com/lyrixkanxa-glitch/gallery/blob/main/lib/secure_photoes/secure_gallery_screen.dart) (Secure gallery), [`lib/main.dart`](https://github.com/lyrixkanxa-glitch/gallery/blob/main/lib/main.dart) (App entry)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["App and navigation"]
  node_entry["App entry<br/>[main.dart]"]
  node_home["Home page<br/>[home_page.dart]"]
end

subgraph group_gallery["Gallery experience"]
  node_gallery_home["Gallery home"]
  node_photo_details["Photo details<br/>[photo_details.dart]"]
  node_background["Blur background"]
end

subgraph group_ai["AI chat"]
  node_chat["AI chat"]
  node_ai_service["AI service<br/>[ai_service.dart]"]
end

subgraph group_secure["Secure photos"]
  node_secure_gallery["Secure gallery"]
  node_secure_photos["Secure photos"]
  node_secure_storage["Secure storage"]
end

node_user(("User"))

node_user -.->|"opens"| node_entry
node_entry -.->|"starts"| node_home
node_home -.->|"opens gallery"| node_gallery_home
node_gallery_home -.->|"opens photo"| node_photo_details
node_home -.->|"opens chat"| node_chat
node_chat -.->|"uses service"| node_ai_service
node_home -.->|"opens secure gallery"| node_secure_gallery
node_secure_gallery -.->|"displays photos"| node_secure_photos
node_secure_gallery -.->|"uses storage"| node_secure_storage
node_gallery_home -.->|"renders"| node_background

click node_entry "https://github.com/lyrixkanxa-glitch/gallery/blob/main/lib/main.dart"
click node_home "https://github.com/lyrixkanxa-glitch/gallery/blob/main/lib/pages/home_page.dart"
click node_gallery_home "https://github.com/lyrixkanxa-glitch/gallery/blob/main/lib/pages/gallery_home_screen.dart"
click node_photo_details "https://github.com/lyrixkanxa-glitch/gallery/blob/main/lib/pages/photo_details.dart"
click node_background "https://github.com/lyrixkanxa-glitch/gallery/blob/main/lib/widgets/blury_background.dart"
click node_chat "https://github.com/lyrixkanxa-glitch/gallery/blob/main/lib/pages/ai_chat_screen.dart"
click node_ai_service "https://github.com/lyrixkanxa-glitch/gallery/blob/main/lib/services/ai_service.dart"
click node_secure_gallery "https://github.com/lyrixkanxa-glitch/gallery/blob/main/lib/secure_photoes/secure_gallery_screen.dart"
click node_secure_photos "https://github.com/lyrixkanxa-glitch/gallery/blob/main/lib/secure_photoes/secure_photoes.dart"
click node_secure_storage "https://github.com/lyrixkanxa-glitch/gallery/blob/main/lib/secure_photoes/secure_storage_helper.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_user toneBlue
class node_gallery_home,node_photo_details,node_background toneAmber
class node_chat,node_ai_service toneMint
class node_secure_gallery,node_secure_photos,node_secure_storage toneRose
```

## Components

### App and navigation

- [App entry](https://github.com/lyrixkanxa-glitch/gallery/blob/main/lib/main.dart): `lib/main.dart`
- [Home page](https://github.com/lyrixkanxa-glitch/gallery/blob/main/lib/pages/home_page.dart): `lib/pages/home_page.dart`

### Gallery experience

- [Gallery home](https://github.com/lyrixkanxa-glitch/gallery/blob/main/lib/pages/gallery_home_screen.dart): `lib/pages/gallery_home_screen.dart`
- [Photo details](https://github.com/lyrixkanxa-glitch/gallery/blob/main/lib/pages/photo_details.dart): `lib/pages/photo_details.dart`
- [Blur background](https://github.com/lyrixkanxa-glitch/gallery/blob/main/lib/widgets/blury_background.dart): `lib/widgets/blury_background.dart`

### AI chat

- [AI chat](https://github.com/lyrixkanxa-glitch/gallery/blob/main/lib/pages/ai_chat_screen.dart): `lib/pages/ai_chat_screen.dart`
- [AI service](https://github.com/lyrixkanxa-glitch/gallery/blob/main/lib/services/ai_service.dart): `lib/services/ai_service.dart`

### Secure photos

- [Secure gallery](https://github.com/lyrixkanxa-glitch/gallery/blob/main/lib/secure_photoes/secure_gallery_screen.dart): `lib/secure_photoes/secure_gallery_screen.dart`
- [Secure photos](https://github.com/lyrixkanxa-glitch/gallery/blob/main/lib/secure_photoes/secure_photoes.dart): `lib/secure_photoes/secure_photoes.dart`
- [Secure storage](https://github.com/lyrixkanxa-glitch/gallery/blob/main/lib/secure_photoes/secure_storage_helper.dart): `lib/secure_photoes/secure_storage_helper.dart`

### Other components

- **User**

## Connections

- User → App entry: opens
- App entry → Home page: starts
- Home page → Gallery home: opens gallery
- Gallery home → Photo details: opens photo
- Home page → AI chat: opens chat
- AI chat → AI service: uses service
- Home page → Secure gallery: opens secure gallery
- Secure gallery → Secure photos: displays photos
- Secure gallery → Secure storage: uses storage
- Gallery home → Blur background: renders
