# janith310/mobile_pos architecture

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

- Interactive diagram: https://gitdiagram.com/janith310/mobile_pos
- Repository: https://github.com/janith310/mobile_pos

## Overview

This is a Flutter application whose visible domain areas are login/authentication and product management, with a database helper and a cross-platform app entry point. The likely user workflow begins in the app and uses the login screen before accessing product management; the source excerpts do not show Dart implementations or calls, so those relationships are unverified. Firebase, Bluetooth printing, and other registered plugins appear in platform files, but their use by product features is not established.

Main entry points: [`lib/loginScreen.dart`](https://github.com/janith310/mobile_pos/blob/main/lib/loginScreen.dart) (Login Screen), [`lib/main.dart`](https://github.com/janith310/mobile_pos/blob/main/lib/main.dart) (App Entry), [`lib/manage_products_screen.dart`](https://github.com/janith310/mobile_pos/blob/main/lib/manage_products_screen.dart) (Product Management), [`lib/auth_service.dart`](https://github.com/janith310/mobile_pos/blob/main/lib/auth_service.dart) (Authentication Service)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["App and UI"]
  node_app_entry["App Entry<br/>[main.dart]"]
  node_login["Login Screen<br/>[loginScreen.dart]"]
  node_products["Product Management"]
end

subgraph group_services["Domain Services"]
  node_auth["Authentication Service<br/>[auth_service.dart]"]
end

subgraph group_storage["Local Storage"]
  node_database[("Database Helper<br/>[db_helper.dart]")]
end

node_user(("User"))

node_user -.->|"starts"| node_app_entry
node_app_entry -.->|"shows"| node_login
node_login -.->|"authenticates"| node_auth
node_login -.->|"opens"| node_products
node_products -.->|"accesses"| node_database

click node_app_entry "https://github.com/janith310/mobile_pos/blob/main/lib/main.dart"
click node_login "https://github.com/janith310/mobile_pos/blob/main/lib/loginScreen.dart"
click node_products "https://github.com/janith310/mobile_pos/blob/main/lib/manage_products_screen.dart"
click node_auth "https://github.com/janith310/mobile_pos/blob/main/lib/auth_service.dart"
click node_database "https://github.com/janith310/mobile_pos/blob/main/lib/db_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_app_entry,node_login,node_products,node_user toneBlue
class node_auth toneAmber
class node_database toneMint
```

## Components

### App and UI

- [App Entry](https://github.com/janith310/mobile_pos/blob/main/lib/main.dart): `lib/main.dart`
- [Login Screen](https://github.com/janith310/mobile_pos/blob/main/lib/loginScreen.dart): `lib/loginScreen.dart`
- [Product Management](https://github.com/janith310/mobile_pos/blob/main/lib/manage_products_screen.dart): `lib/manage_products_screen.dart`

### Domain Services

- [Authentication Service](https://github.com/janith310/mobile_pos/blob/main/lib/auth_service.dart): `lib/auth_service.dart`

### Local Storage

- [Database Helper](https://github.com/janith310/mobile_pos/blob/main/lib/db_helper.dart): `lib/db_helper.dart`

### Other components

- **User**

## Connections

- User → App Entry: starts
- App Entry → Login Screen: shows
- Login Screen → Authentication Service: authenticates
- Login Screen → Product Management: opens
- Product Management → Database Helper: accesses
