# lakshmiand45/rts_mobile_app architecture

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

- Interactive diagram: https://gitdiagram.com/lakshmiand45/rts_mobile_app
- Repository: https://github.com/lakshmiand45/rts_mobile_app

## Overview

This is a Flutter app whose names suggest request/ticket handling, role-based access, and food requests or subscriptions. The README provides no product-specific workflow, and the Dart implementation was not sampled, so the business relationships below are dashed and unverified rather than asserted as observed calls. Platform runner components are included as runtime shells; their edges reflect only the sampled native entry points.

Main entry points: [`lib/features/dashboard/dashboard_screen.dart`](https://github.com/lakshmiand45/rts_mobile_app/blob/main/lib/features/dashboard/dashboard_screen.dart) (Dashboard), [`lib/main.dart`](https://github.com/lakshmiand45/rts_mobile_app/blob/main/lib/main.dart) (App entry), [`lib/providers/food_provider.dart`](https://github.com/lakshmiand45/rts_mobile_app/blob/main/lib/providers/food_provider.dart) (Food state), [`lib/features/auth/login_screen.dart`](https://github.com/lakshmiand45/rts_mobile_app/blob/main/lib/features/auth/login_screen.dart) (Login)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_access["Access and dashboard"]
  node_loading["Loading"]
  node_login["Login<br/>[login_screen.dart]"]
  node_reset["Password reset"]
  node_role_select["Role selection"]
  node_dashboard["Dashboard"]
  node_add_request["Add request"]
  node_switch_role["Switch role"]
  node_instructions["Instructions"]
end

subgraph group_requests["Request operations"]
  node_request_screen["Request list"]
  node_request_detail["Request details"]
  node_request_actions["Request actions"]
  node_request_model["Request model<br/>[request_model.dart]"]
  node_request_provider["Request state"]
  node_request_api["Request API<br/>[request_api.dart]"]
end

subgraph group_food["Food services"]
  node_food_screen["Food requests"]
  node_food_subscriptions["Subscriptions"]
  node_food_provider["Food state<br/>[food_provider.dart]"]
  node_food_api["Food API"]
  node_food_model["Subscription model"]
end

subgraph group_shared["Shared app services"]
  node_app["App entry<br/>[main.dart]"]
  node_auth_provider["Auth state<br/>[auth_provider.dart]"]
  node_auth_api["Auth API<br/>[auth_api.dart]"]
  node_role_provider["Role management"]
  node_role_api["Role API"]
  node_push_provider["Push notifications"]
  node_push_api["Notification API"]
  node_api_service["API service<br/>[api_service.dart]"]
  node_user_model["User model<br/>[user_model.dart]"]
  node_chat_model["Chat model<br/>[chat_model.dart]"]
  node_status_badge["Status badge<br/>[status_badge.dart]"]
end

subgraph group_platform["Platform shells"]
  node_android_shell["Android shell<br/>[MainActivity.kt]"]
  node_ios_shell["iOS shell<br/>[AppDelegate.swift]"]
  node_linux_shell["Linux runner"]
end

node_user(("App user"))

node_user -.->|"opens"| node_app
node_app -.->|"starts"| node_loading
node_loading -.->|"routes to"| node_login
node_login -.->|"authenticates"| node_auth_provider
node_auth_provider -.->|"uses"| node_auth_api
node_login -.->|"continues to"| node_dashboard
node_dashboard -.->|"opens"| node_request_screen
node_dashboard -.->|"creates via"| node_add_request
node_dashboard -.->|"changes role via"| node_switch_role
node_dashboard -.->|"shows"| node_instructions
node_request_screen -.->|"opens"| node_request_detail
node_request_detail -.->|"offers"| node_request_actions
node_request_provider -.->|"uses"| node_request_api
node_request_provider -.->|"manages"| node_request_model
node_food_screen -.->|"uses"| node_food_provider
node_food_subscriptions -.->|"uses"| node_food_provider
node_food_provider -.->|"uses"| node_food_api
node_food_provider -.->|"manages"| node_food_model
node_role_provider -.->|"uses"| node_role_api
node_push_provider -.->|"uses"| node_push_api
node_android_shell -.->|"hosts"| node_app
node_ios_shell -.->|"hosts"| node_app
node_linux_shell -.->|"hosts"| node_app

click node_app "https://github.com/lakshmiand45/rts_mobile_app/blob/main/lib/main.dart"
click node_loading "https://github.com/lakshmiand45/rts_mobile_app/blob/main/lib/features/auth/loading_screen.dart"
click node_login "https://github.com/lakshmiand45/rts_mobile_app/blob/main/lib/features/auth/login_screen.dart"
click node_reset "https://github.com/lakshmiand45/rts_mobile_app/blob/main/lib/features/auth/reset_password_screen.dart"
click node_role_select "https://github.com/lakshmiand45/rts_mobile_app/blob/main/lib/features/auth/role_selection_screen.dart"
click node_dashboard "https://github.com/lakshmiand45/rts_mobile_app/blob/main/lib/features/dashboard/dashboard_screen.dart"
click node_add_request "https://github.com/lakshmiand45/rts_mobile_app/blob/main/lib/features/dashboard/widgets/add_request_modal.dart"
click node_switch_role "https://github.com/lakshmiand45/rts_mobile_app/blob/main/lib/features/dashboard/widgets/switch_role_modal.dart"
click node_instructions "https://github.com/lakshmiand45/rts_mobile_app/blob/main/lib/features/dashboard/widgets/instructions_modal.dart"
click node_request_screen "https://github.com/lakshmiand45/rts_mobile_app/blob/main/lib/features/request_details/request_details_screen.dart"
click node_request_detail "https://github.com/lakshmiand45/rts_mobile_app/blob/main/lib/features/request_details/request_details_screen.dart"
click node_request_actions "https://github.com/lakshmiand45/rts_mobile_app/tree/main/lib/features/request_details/widgets"
click node_request_model "https://github.com/lakshmiand45/rts_mobile_app/blob/main/lib/models/request_model.dart"
click node_request_provider "https://github.com/lakshmiand45/rts_mobile_app/blob/main/lib/providers/request_provider.dart"
click node_request_api "https://github.com/lakshmiand45/rts_mobile_app/blob/main/lib/core/services/request_api.dart"
click node_food_screen "https://github.com/lakshmiand45/rts_mobile_app/blob/main/lib/features/food_request/food_request_screen.dart"
click node_food_subscriptions "https://github.com/lakshmiand45/rts_mobile_app/blob/main/lib/features/food_request/food_subscription_screen.dart"
click node_food_provider "https://github.com/lakshmiand45/rts_mobile_app/blob/main/lib/providers/food_provider.dart"
click node_food_api "https://github.com/lakshmiand45/rts_mobile_app/blob/main/lib/core/services/food_request_api.dart"
click node_food_model "https://github.com/lakshmiand45/rts_mobile_app/blob/main/lib/models/food_subscription_model.dart"
click node_auth_provider "https://github.com/lakshmiand45/rts_mobile_app/blob/main/lib/providers/auth_provider.dart"
click node_auth_api "https://github.com/lakshmiand45/rts_mobile_app/blob/main/lib/core/services/auth_api.dart"
click node_role_provider "https://github.com/lakshmiand45/rts_mobile_app/blob/main/lib/providers/role_management_provider.dart"
click node_role_api "https://github.com/lakshmiand45/rts_mobile_app/blob/main/lib/core/services/role_management_api.dart"
click node_push_provider "https://github.com/lakshmiand45/rts_mobile_app/blob/main/lib/providers/push_notification_provider.dart"
click node_push_api "https://github.com/lakshmiand45/rts_mobile_app/blob/main/lib/core/services/push_notifications_api.dart"
click node_api_service "https://github.com/lakshmiand45/rts_mobile_app/blob/main/lib/core/services/api_service.dart"
click node_user_model "https://github.com/lakshmiand45/rts_mobile_app/blob/main/lib/models/user_model.dart"
click node_chat_model "https://github.com/lakshmiand45/rts_mobile_app/blob/main/lib/models/chat_model.dart"
click node_status_badge "https://github.com/lakshmiand45/rts_mobile_app/blob/main/lib/core/widgets/status_badge.dart"
click node_android_shell "https://github.com/lakshmiand45/rts_mobile_app/blob/main/android/app/src/main/kotlin/com/appsndevices/rts/MainActivity.kt"
click node_ios_shell "https://github.com/lakshmiand45/rts_mobile_app/blob/main/ios/Runner/AppDelegate.swift"
click node_linux_shell "https://github.com/lakshmiand45/rts_mobile_app/tree/main/linux/runner"

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_loading,node_login,node_reset,node_role_select,node_dashboard,node_add_request,node_switch_role,node_instructions,node_user toneBlue
class node_request_screen,node_request_detail,node_request_actions,node_request_model,node_request_provider,node_request_api toneAmber
class node_food_screen,node_food_subscriptions,node_food_provider,node_food_api,node_food_model toneMint
class node_app,node_auth_provider,node_auth_api,node_role_provider,node_role_api,node_push_provider,node_push_api,node_api_service,node_user_model,node_chat_model,node_status_badge toneRose
class node_android_shell,node_ios_shell,node_linux_shell toneIndigo
```

## Components

### Access and dashboard

- [Loading](https://github.com/lakshmiand45/rts_mobile_app/blob/main/lib/features/auth/loading_screen.dart): `lib/features/auth/loading_screen.dart`
- [Login](https://github.com/lakshmiand45/rts_mobile_app/blob/main/lib/features/auth/login_screen.dart): `lib/features/auth/login_screen.dart`
- [Password reset](https://github.com/lakshmiand45/rts_mobile_app/blob/main/lib/features/auth/reset_password_screen.dart): `lib/features/auth/reset_password_screen.dart`
- [Role selection](https://github.com/lakshmiand45/rts_mobile_app/blob/main/lib/features/auth/role_selection_screen.dart): `lib/features/auth/role_selection_screen.dart`
- [Dashboard](https://github.com/lakshmiand45/rts_mobile_app/blob/main/lib/features/dashboard/dashboard_screen.dart): `lib/features/dashboard/dashboard_screen.dart`
- [Add request](https://github.com/lakshmiand45/rts_mobile_app/blob/main/lib/features/dashboard/widgets/add_request_modal.dart): `lib/features/dashboard/widgets/add_request_modal.dart`
- [Switch role](https://github.com/lakshmiand45/rts_mobile_app/blob/main/lib/features/dashboard/widgets/switch_role_modal.dart): `lib/features/dashboard/widgets/switch_role_modal.dart`
- [Instructions](https://github.com/lakshmiand45/rts_mobile_app/blob/main/lib/features/dashboard/widgets/instructions_modal.dart): `lib/features/dashboard/widgets/instructions_modal.dart`

### Request operations

- [Request list](https://github.com/lakshmiand45/rts_mobile_app/blob/main/lib/features/request_details/request_details_screen.dart): `lib/features/request_details/request_details_screen.dart`
- [Request details](https://github.com/lakshmiand45/rts_mobile_app/blob/main/lib/features/request_details/request_details_screen.dart): `lib/features/request_details/request_details_screen.dart`
- [Request actions](https://github.com/lakshmiand45/rts_mobile_app/tree/main/lib/features/request_details/widgets): `lib/features/request_details/widgets`
- [Request model](https://github.com/lakshmiand45/rts_mobile_app/blob/main/lib/models/request_model.dart): `lib/models/request_model.dart`
- [Request state](https://github.com/lakshmiand45/rts_mobile_app/blob/main/lib/providers/request_provider.dart): `lib/providers/request_provider.dart`
- [Request API](https://github.com/lakshmiand45/rts_mobile_app/blob/main/lib/core/services/request_api.dart): `lib/core/services/request_api.dart`

### Food services

- [Food requests](https://github.com/lakshmiand45/rts_mobile_app/blob/main/lib/features/food_request/food_request_screen.dart): `lib/features/food_request/food_request_screen.dart`
- [Subscriptions](https://github.com/lakshmiand45/rts_mobile_app/blob/main/lib/features/food_request/food_subscription_screen.dart): `lib/features/food_request/food_subscription_screen.dart`
- [Food state](https://github.com/lakshmiand45/rts_mobile_app/blob/main/lib/providers/food_provider.dart): `lib/providers/food_provider.dart`
- [Food API](https://github.com/lakshmiand45/rts_mobile_app/blob/main/lib/core/services/food_request_api.dart): `lib/core/services/food_request_api.dart`
- [Subscription model](https://github.com/lakshmiand45/rts_mobile_app/blob/main/lib/models/food_subscription_model.dart): `lib/models/food_subscription_model.dart`

### Shared app services

- [App entry](https://github.com/lakshmiand45/rts_mobile_app/blob/main/lib/main.dart): `lib/main.dart`
- [Auth state](https://github.com/lakshmiand45/rts_mobile_app/blob/main/lib/providers/auth_provider.dart): `lib/providers/auth_provider.dart`
- [Auth API](https://github.com/lakshmiand45/rts_mobile_app/blob/main/lib/core/services/auth_api.dart): `lib/core/services/auth_api.dart`
- [Role management](https://github.com/lakshmiand45/rts_mobile_app/blob/main/lib/providers/role_management_provider.dart): `lib/providers/role_management_provider.dart`
- [Role API](https://github.com/lakshmiand45/rts_mobile_app/blob/main/lib/core/services/role_management_api.dart): `lib/core/services/role_management_api.dart`
- [Push notifications](https://github.com/lakshmiand45/rts_mobile_app/blob/main/lib/providers/push_notification_provider.dart): `lib/providers/push_notification_provider.dart`
- [Notification API](https://github.com/lakshmiand45/rts_mobile_app/blob/main/lib/core/services/push_notifications_api.dart): `lib/core/services/push_notifications_api.dart`
- [API service](https://github.com/lakshmiand45/rts_mobile_app/blob/main/lib/core/services/api_service.dart): `lib/core/services/api_service.dart`
- [User model](https://github.com/lakshmiand45/rts_mobile_app/blob/main/lib/models/user_model.dart): `lib/models/user_model.dart`
- [Chat model](https://github.com/lakshmiand45/rts_mobile_app/blob/main/lib/models/chat_model.dart): `lib/models/chat_model.dart`
- [Status badge](https://github.com/lakshmiand45/rts_mobile_app/blob/main/lib/core/widgets/status_badge.dart): `lib/core/widgets/status_badge.dart`

### Platform shells

- [Android shell](https://github.com/lakshmiand45/rts_mobile_app/blob/main/android/app/src/main/kotlin/com/appsndevices/rts/MainActivity.kt): `android/app/src/main/kotlin/com/appsndevices/rts/MainActivity.kt`
- [iOS shell](https://github.com/lakshmiand45/rts_mobile_app/blob/main/ios/Runner/AppDelegate.swift): `ios/Runner/AppDelegate.swift`
- [Linux runner](https://github.com/lakshmiand45/rts_mobile_app/tree/main/linux/runner): `linux/runner`

### Other components

- **App user**

## Connections

- App user → App entry: opens
- App entry → Loading: starts
- Loading → Login: routes to
- Login → Auth state: authenticates
- Auth state → Auth API: uses
- Login → Dashboard: continues to
- Dashboard → Request list: opens
- Dashboard → Add request: creates via
- Dashboard → Switch role: changes role via
- Dashboard → Instructions: shows
- Request list → Request details: opens
- Request details → Request actions: offers
- Request state → Request API: uses
- Request state → Request model: manages
- Food requests → Food state: uses
- Subscriptions → Food state: uses
- Food state → Food API: uses
- Food state → Subscription model: manages
- Role management → Role API: uses
- Push notifications → Notification API: uses
- Android shell → App entry: hosts
- iOS shell → App entry: hosts
- Linux runner → App entry: hosts
