# frappe/mobile architecture

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

- Interactive diagram: https://gitdiagram.com/frappe/mobile
- Repository: https://github.com/frappe/mobile

## Overview

Frappe Mobile is a Flutter client for accessing an ERPNext or other Frappe desk on a phone. The principal workflow is to enter the desk, find or browse records, then view, create, or update documents; the README also highlights assignments, tags, attachments, comments, email, reactions, timeline, and the Awesome Bar. The tree shows separate MVVM-style screens, form controls, API, and storage layers. Dart sources were not excerpted, so screen-to-service calls and most internal wiring remain unverified.

Main entry points: [`lib/views/form_view/form_view.dart`](https://github.com/frappe/mobile/blob/develop/lib/views/form_view/form_view.dart) (Document form), [`lib/views/desk/desk_view.dart`](https://github.com/frappe/mobile/blob/develop/lib/views/desk/desk_view.dart) (Desk), [`lib/views/list_view/list_view.dart`](https://github.com/frappe/mobile/blob/develop/lib/views/list_view/list_view.dart) (Record list), [`lib/views/login/login_view.dart`](https://github.com/frappe/mobile/blob/develop/lib/views/login/login_view.dart) (Sign in)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_navigation["Entry and navigation"]
  node_login["Sign in<br/>[login_view.dart]"]
  node_desk["Desk<br/>[desk_view.dart]"]
  node_awesome["Awesome Bar"]
end

subgraph group_records["Record workflows"]
  node_listing["Record list<br/>[list_view.dart]"]
  node_form["Document form<br/>[form_view.dart]"]
  node_controls["Form controls<br/>[control.dart]"]
  node_newdoc["New document<br/>[new_doc_view.dart]"]
end

subgraph group_collaboration["Collaboration"]
  node_timeline["Timeline<br/>[timeline.dart]"]
  node_assignments["Assignments and tags"]
  node_attachments["Attachments"]
  node_reviews["Reviews"]
  node_comments["Comments<br/>[comment_input.dart]"]
  node_email["Send email"]
end

subgraph group_platform["Client services"]
  node_api["API client<br/>[dio_api.dart]"]
  node_storage["Local storage"]
  node_connectivity["Connectivity"]
  node_models["Response models"]
end

node_user(("Mobile user"))

node_user -.->|"signs in"| node_login
node_user -.->|"opens desk"| node_desk
node_user -.->|"finds records"| node_awesome
node_desk -.->|"browses records"| node_listing
node_listing -.->|"opens record"| node_form
node_user -.->|"creates document"| node_newdoc
node_user -.->|"updates document"| node_form
node_form -.->|"uses fields"| node_controls
node_user -.->|"views activity"| node_timeline
node_user -.->|"manages assignees and tags"| node_assignments
node_user -.->|"manages files"| node_attachments
node_user -.->|"appreciates or criticizes"| node_reviews
node_user -.->|"adds comments"| node_comments
node_user -.->|"sends email"| node_email

click node_login "https://github.com/frappe/mobile/blob/develop/lib/views/login/login_view.dart"
click node_desk "https://github.com/frappe/mobile/blob/develop/lib/views/desk/desk_view.dart"
click node_awesome "https://github.com/frappe/mobile/blob/develop/lib/views/awesome_bar/awesome_bar_view.dart"
click node_listing "https://github.com/frappe/mobile/blob/develop/lib/views/list_view/list_view.dart"
click node_form "https://github.com/frappe/mobile/blob/develop/lib/views/form_view/form_view.dart"
click node_controls "https://github.com/frappe/mobile/blob/develop/lib/form/controls/control.dart"
click node_newdoc "https://github.com/frappe/mobile/blob/develop/lib/views/new_doc/new_doc_view.dart"
click node_timeline "https://github.com/frappe/mobile/blob/develop/lib/widgets/timeline.dart"
click node_assignments "https://github.com/frappe/mobile/blob/develop/lib/views/form_view/bottom_sheets/assignees/assignees_bottom_sheet_view.dart"
click node_attachments "https://github.com/frappe/mobile/blob/develop/lib/views/form_view/bottom_sheets/attachments/add_attachments_bottom_sheet_view.dart"
click node_reviews "https://github.com/frappe/mobile/blob/develop/lib/views/form_view/bottom_sheets/reviews/add_review_bottom_sheet_view.dart"
click node_comments "https://github.com/frappe/mobile/blob/develop/lib/views/comment_input.dart"
click node_email "https://github.com/frappe/mobile/blob/develop/lib/views/send_email/send_email_view.dart"
click node_api "https://github.com/frappe/mobile/blob/develop/lib/services/api/dio_api.dart"
click node_storage "https://github.com/frappe/mobile/blob/develop/lib/services/storage_service.dart"
click node_connectivity "https://github.com/frappe/mobile/blob/develop/lib/services/connectivity_service.dart"
click node_models "https://github.com/frappe/mobile/tree/develop/lib/model"

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_login,node_desk,node_awesome,node_user toneBlue
class node_listing,node_form,node_controls,node_newdoc toneAmber
class node_timeline,node_assignments,node_attachments,node_reviews,node_comments,node_email toneMint
class node_api,node_storage,node_connectivity,node_models toneRose
```

## Components

### Entry and navigation

- [Sign in](https://github.com/frappe/mobile/blob/develop/lib/views/login/login_view.dart): `lib/views/login/login_view.dart`
- [Desk](https://github.com/frappe/mobile/blob/develop/lib/views/desk/desk_view.dart): `lib/views/desk/desk_view.dart`
- [Awesome Bar](https://github.com/frappe/mobile/blob/develop/lib/views/awesome_bar/awesome_bar_view.dart): `lib/views/awesome_bar/awesome_bar_view.dart`

### Record workflows

- [Record list](https://github.com/frappe/mobile/blob/develop/lib/views/list_view/list_view.dart): `lib/views/list_view/list_view.dart`
- [Document form](https://github.com/frappe/mobile/blob/develop/lib/views/form_view/form_view.dart): `lib/views/form_view/form_view.dart`
- [Form controls](https://github.com/frappe/mobile/blob/develop/lib/form/controls/control.dart): `lib/form/controls/control.dart`
- [New document](https://github.com/frappe/mobile/blob/develop/lib/views/new_doc/new_doc_view.dart): `lib/views/new_doc/new_doc_view.dart`

### Collaboration

- [Timeline](https://github.com/frappe/mobile/blob/develop/lib/widgets/timeline.dart): `lib/widgets/timeline.dart`
- [Assignments and tags](https://github.com/frappe/mobile/blob/develop/lib/views/form_view/bottom_sheets/assignees/assignees_bottom_sheet_view.dart): `lib/views/form_view/bottom_sheets/assignees/assignees_bottom_sheet_view.dart`
- [Attachments](https://github.com/frappe/mobile/blob/develop/lib/views/form_view/bottom_sheets/attachments/add_attachments_bottom_sheet_view.dart): `lib/views/form_view/bottom_sheets/attachments/add_attachments_bottom_sheet_view.dart`
- [Reviews](https://github.com/frappe/mobile/blob/develop/lib/views/form_view/bottom_sheets/reviews/add_review_bottom_sheet_view.dart): `lib/views/form_view/bottom_sheets/reviews/add_review_bottom_sheet_view.dart`
- [Comments](https://github.com/frappe/mobile/blob/develop/lib/views/comment_input.dart): `lib/views/comment_input.dart`
- [Send email](https://github.com/frappe/mobile/blob/develop/lib/views/send_email/send_email_view.dart): `lib/views/send_email/send_email_view.dart`

### Client services

- [API client](https://github.com/frappe/mobile/blob/develop/lib/services/api/dio_api.dart): `lib/services/api/dio_api.dart`
- [Local storage](https://github.com/frappe/mobile/blob/develop/lib/services/storage_service.dart): `lib/services/storage_service.dart`
- [Connectivity](https://github.com/frappe/mobile/blob/develop/lib/services/connectivity_service.dart): `lib/services/connectivity_service.dart`
- [Response models](https://github.com/frappe/mobile/tree/develop/lib/model): `lib/model`

### Other components

- **Mobile user**

## Connections

- Mobile user → Sign in: signs in
- Mobile user → Desk: opens desk (evidence: `README.md`)
- Mobile user → Awesome Bar: finds records (evidence: `README.md`)
- Desk → Record list: browses records
- Record list → Document form: opens record
- Mobile user → New document: creates document (evidence: `README.md`)
- Mobile user → Document form: updates document (evidence: `README.md`)
- Document form → Form controls: uses fields
- Mobile user → Timeline: views activity (evidence: `README.md`)
- Mobile user → Assignments and tags: manages assignees and tags (evidence: `README.md`)
- Mobile user → Attachments: manages files (evidence: `README.md`)
- Mobile user → Reviews: appreciates or criticizes (evidence: `README.md`)
- Mobile user → Comments: adds comments (evidence: `README.md`)
- Mobile user → Send email: sends email (evidence: `README.md`)
