# zr015/expense-tracker architecture

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

- Interactive diagram: https://gitdiagram.com/zr015/expense-tracker
- Repository: https://github.com/zr015/expense-tracker

## Overview

This is a Flutter expense-tracking app. Its screen names suggest a user journey involving sign-in or registration, expense entry, and reviewing history or summaries, with settings and a splash screen as additional UI. The tree also identifies an expense model and authentication/Firebase services. No source excerpts or README details establish how these pieces connect, so the graph records the available components without inventing call or data-flow edges.

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ui["App screens"]
  node_splash["Splash screen<br/>[splash_screen.dart]"]
  node_login["Login<br/>[login.dart]"]
  node_register["Registration"]
  node_home["Home screen<br/>[home_screen.dart]"]
  node_add_expense["Add expense"]
  node_history["Expense history"]
  node_summary["Expense summary"]
  node_settings["Settings"]
end

subgraph group_domain["Expense domain"]
  node_expense_model["Expense model<br/>[expense_model.dart]"]
end

subgraph group_services["Services and setup"]
  node_main["App entry<br/>[main.dart]"]
  node_auth_service["Authentication service<br/>[auth_service.dart]"]
  node_firebase_service["Firebase service"]
  node_firebase_options["Firebase options"]
end

click node_main "https://github.com/zr015/expense-tracker/blob/main/lib/main.dart"
click node_splash "https://github.com/zr015/expense-tracker/blob/main/lib/SCREENS/splash_screen.dart"
click node_login "https://github.com/zr015/expense-tracker/blob/main/lib/SCREENS/login.dart"
click node_register "https://github.com/zr015/expense-tracker/blob/main/lib/SCREENS/register_screen.dart"
click node_home "https://github.com/zr015/expense-tracker/blob/main/lib/SCREENS/home_screen.dart"
click node_add_expense "https://github.com/zr015/expense-tracker/blob/main/lib/SCREENS/add_expense_screen.dart"
click node_history "https://github.com/zr015/expense-tracker/blob/main/lib/SCREENS/history_screen.dart"
click node_summary "https://github.com/zr015/expense-tracker/blob/main/lib/SCREENS/summary_screen.dart"
click node_settings "https://github.com/zr015/expense-tracker/blob/main/lib/SCREENS/settings_screen.dart"
click node_expense_model "https://github.com/zr015/expense-tracker/blob/main/lib/MODELS/expense_model.dart"
click node_auth_service "https://github.com/zr015/expense-tracker/blob/main/lib/SERVICES/auth_service.dart"
click node_firebase_service "https://github.com/zr015/expense-tracker/blob/main/lib/SERVICES/firebase_service.dart"
click node_firebase_options "https://github.com/zr015/expense-tracker/blob/main/lib/firebase_options.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_splash,node_login,node_register,node_home,node_add_expense,node_history,node_summary,node_settings toneBlue
class node_expense_model toneAmber
class node_main,node_auth_service,node_firebase_service,node_firebase_options toneMint
```

## Components

### App screens

- [Splash screen](https://github.com/zr015/expense-tracker/blob/main/lib/SCREENS/splash_screen.dart): `lib/SCREENS/splash_screen.dart`
- [Login](https://github.com/zr015/expense-tracker/blob/main/lib/SCREENS/login.dart): `lib/SCREENS/login.dart`
- [Registration](https://github.com/zr015/expense-tracker/blob/main/lib/SCREENS/register_screen.dart): `lib/SCREENS/register_screen.dart`
- [Home screen](https://github.com/zr015/expense-tracker/blob/main/lib/SCREENS/home_screen.dart): `lib/SCREENS/home_screen.dart`
- [Add expense](https://github.com/zr015/expense-tracker/blob/main/lib/SCREENS/add_expense_screen.dart): `lib/SCREENS/add_expense_screen.dart`
- [Expense history](https://github.com/zr015/expense-tracker/blob/main/lib/SCREENS/history_screen.dart): `lib/SCREENS/history_screen.dart`
- [Expense summary](https://github.com/zr015/expense-tracker/blob/main/lib/SCREENS/summary_screen.dart): `lib/SCREENS/summary_screen.dart`
- [Settings](https://github.com/zr015/expense-tracker/blob/main/lib/SCREENS/settings_screen.dart): `lib/SCREENS/settings_screen.dart`

### Expense domain

- [Expense model](https://github.com/zr015/expense-tracker/blob/main/lib/MODELS/expense_model.dart): `lib/MODELS/expense_model.dart`

### Services and setup

- [App entry](https://github.com/zr015/expense-tracker/blob/main/lib/main.dart): `lib/main.dart`
- [Authentication service](https://github.com/zr015/expense-tracker/blob/main/lib/SERVICES/auth_service.dart): `lib/SERVICES/auth_service.dart`
- [Firebase service](https://github.com/zr015/expense-tracker/blob/main/lib/SERVICES/firebase_service.dart): `lib/SERVICES/firebase_service.dart`
- [Firebase options](https://github.com/zr015/expense-tracker/blob/main/lib/firebase_options.dart): `lib/firebase_options.dart`
