# allenpaulgloria/fire-distinguisher architecture

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

- Interactive diagram: https://gitdiagram.com/allenpaulgloria/fire-distinguisher
- Repository: https://github.com/allenpaulgloria/fire-distinguisher

## Overview

This is a Flutter app named fire_distinguisher; its README describes only a starter project, not its product behavior. The file tree suggests a user-facing fire-distinguishing screen, a provider for app state, and camera and vision services. The likely workflow is user interaction through the screen, coordinated by the provider, with camera input and vision processing. Source excerpts do not include the Dart files, so these connections are shown as unverified rather than asserted as inspected behavior.

Main entry points: [`lib/providers/distinguisher_provider.dart`](https://github.com/allenpaulgloria/fire-distinguisher/blob/main/lib/providers/distinguisher_provider.dart) (Distinguisher provider), [`lib/ui/fire_distinguisher_screen.dart`](https://github.com/allenpaulgloria/fire-distinguisher/blob/main/lib/ui/fire_distinguisher_screen.dart) (Fire distinguisher screen), [`lib/main.dart`](https://github.com/allenpaulgloria/fire-distinguisher/blob/main/lib/main.dart) (App entry point), [`lib/services/camera_service.dart`](https://github.com/allenpaulgloria/fire-distinguisher/blob/main/lib/services/camera_service.dart) (Camera service)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interface["User interface"]
  node_screen["Fire distinguisher screen"]
end

subgraph group_app_logic["App coordination"]
  node_main["App entry point<br/>[main.dart]"]
  node_provider["Distinguisher provider"]
end

subgraph group_vision_io["Camera and vision"]
  node_camera["Camera service"]
  node_vision["Vision service"]
end

node_user(("User"))

node_user -.->|"uses"| node_screen
node_main -.->|"launches"| node_screen
node_screen -.->|"delegates to"| node_provider
node_provider -.->|"requests input"| node_camera
node_provider -.->|"requests analysis"| node_vision

click node_main "https://github.com/allenpaulgloria/fire-distinguisher/blob/main/lib/main.dart"
click node_screen "https://github.com/allenpaulgloria/fire-distinguisher/blob/main/lib/ui/fire_distinguisher_screen.dart"
click node_provider "https://github.com/allenpaulgloria/fire-distinguisher/blob/main/lib/providers/distinguisher_provider.dart"
click node_camera "https://github.com/allenpaulgloria/fire-distinguisher/blob/main/lib/services/camera_service.dart"
click node_vision "https://github.com/allenpaulgloria/fire-distinguisher/blob/main/lib/services/vision_service.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_screen,node_user toneBlue
class node_main,node_provider toneAmber
class node_camera,node_vision toneMint
```

## Components

### User interface

- [Fire distinguisher screen](https://github.com/allenpaulgloria/fire-distinguisher/blob/main/lib/ui/fire_distinguisher_screen.dart): `lib/ui/fire_distinguisher_screen.dart`

### App coordination

- [App entry point](https://github.com/allenpaulgloria/fire-distinguisher/blob/main/lib/main.dart): `lib/main.dart`
- [Distinguisher provider](https://github.com/allenpaulgloria/fire-distinguisher/blob/main/lib/providers/distinguisher_provider.dart): `lib/providers/distinguisher_provider.dart`

### Camera and vision

- [Camera service](https://github.com/allenpaulgloria/fire-distinguisher/blob/main/lib/services/camera_service.dart): `lib/services/camera_service.dart`
- [Vision service](https://github.com/allenpaulgloria/fire-distinguisher/blob/main/lib/services/vision_service.dart): `lib/services/vision_service.dart`

### Other components

- **User**

## Connections

- User → Fire distinguisher screen: uses
- App entry point → Fire distinguisher screen: launches
- Fire distinguisher screen → Distinguisher provider: delegates to
- Distinguisher provider → Camera service: requests input
- Distinguisher provider → Vision service: requests analysis
