# landchit/chitils architecture

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

- Interactive diagram: https://gitdiagram.com/landchit/chitils
- Repository: https://github.com/landchit/chitils

## Overview

Chitils is a Flutter app described as a MIUI root utility currently targeting the POCO X3 GT. The likely user workflow is to open the app, browse its home and mod-related screens, and invoke root utilities; the tree also shows download, progress, and settings screens. Dart implementation excerpts were not provided, so screen-to-screen navigation and utility dispatch are unverified and are not asserted as evidenced calls.

Main entry points: [`lib/pages/mod_page.dart`](https://github.com/landchit/chitils/blob/main/lib/pages/mod_page.dart) (Mod screen), [`lib/commands_handler/root_commands.dart`](https://github.com/landchit/chitils/blob/main/lib/commands_handler/root_commands.dart) (Root commands), [`lib/main.dart`](https://github.com/landchit/chitils/blob/main/lib/main.dart) (App entry), [`lib/pages/home_page.dart`](https://github.com/landchit/chitils/blob/main/lib/pages/home_page.dart) (Home screen)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["App screens"]
  node_entry["App entry<br/>[main.dart]"]
  node_home["Home screen<br/>[home_page.dart]"]
  node_mods["Mod screen<br/>[mod_page.dart]"]
  node_downloads["Download screen<br/>[download_page.dart]"]
  node_progress["Progress screen"]
  node_settings["Settings screen<br/>[settings_page.dart]"]
end

subgraph group_utilities["Root utilities"]
  node_commands["Root commands<br/>[root_commands.dart]"]
  node_command_helpers["Command helpers"]
  node_power["Device power"]
  node_monet["MIUI Monet"]
end

subgraph group_widgets["Shared UI"]
  node_mod_tile["Mod tile"]
  node_title["Title widget<br/>[title_widget.dart]"]
end

node_user(("User"))

node_user -.->|"opens"| node_entry
node_entry -.->|"starts"| node_home
node_home -.->|"navigates"| node_mods
node_mods -.->|"invokes"| node_commands
node_mods -.->|"navigates"| node_downloads
node_mods -.->|"navigates"| node_progress
node_entry -.->|"navigates"| node_settings
node_commands -.->|"delegates"| node_command_helpers
node_commands -.->|"dispatches"| node_power
node_commands -.->|"dispatches"| node_monet
node_mods -.->|"renders"| node_mod_tile
node_home -.->|"renders"| node_title

click node_entry "https://github.com/landchit/chitils/blob/main/lib/main.dart"
click node_home "https://github.com/landchit/chitils/blob/main/lib/pages/home_page.dart"
click node_mods "https://github.com/landchit/chitils/blob/main/lib/pages/mod_page.dart"
click node_downloads "https://github.com/landchit/chitils/blob/main/lib/pages/download_page.dart"
click node_progress "https://github.com/landchit/chitils/blob/main/lib/pages/inprogress_page.dart"
click node_settings "https://github.com/landchit/chitils/blob/main/lib/pages/settings_page.dart"
click node_commands "https://github.com/landchit/chitils/blob/main/lib/commands_handler/root_commands.dart"
click node_command_helpers "https://github.com/landchit/chitils/blob/main/lib/commands_handler/root_commands_helper.dart"
click node_power "https://github.com/landchit/chitils/blob/main/lib/utility_groups/device_power_utlility.dart"
click node_monet "https://github.com/landchit/chitils/blob/main/lib/utility_groups/miui_monet_utility.dart"
click node_mod_tile "https://github.com/landchit/chitils/blob/main/lib/widgets/mod_utility_tile.dart"
click node_title "https://github.com/landchit/chitils/blob/main/lib/widgets/title_widget.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_entry,node_home,node_mods,node_downloads,node_progress,node_settings,node_user toneBlue
class node_commands,node_command_helpers,node_power,node_monet toneAmber
class node_mod_tile,node_title toneMint
```

## Components

### App screens

- [App entry](https://github.com/landchit/chitils/blob/main/lib/main.dart): `lib/main.dart`
- [Home screen](https://github.com/landchit/chitils/blob/main/lib/pages/home_page.dart): `lib/pages/home_page.dart`
- [Mod screen](https://github.com/landchit/chitils/blob/main/lib/pages/mod_page.dart): `lib/pages/mod_page.dart`
- [Download screen](https://github.com/landchit/chitils/blob/main/lib/pages/download_page.dart): `lib/pages/download_page.dart`
- [Progress screen](https://github.com/landchit/chitils/blob/main/lib/pages/inprogress_page.dart): `lib/pages/inprogress_page.dart`
- [Settings screen](https://github.com/landchit/chitils/blob/main/lib/pages/settings_page.dart): `lib/pages/settings_page.dart`

### Root utilities

- [Root commands](https://github.com/landchit/chitils/blob/main/lib/commands_handler/root_commands.dart): `lib/commands_handler/root_commands.dart`
- [Command helpers](https://github.com/landchit/chitils/blob/main/lib/commands_handler/root_commands_helper.dart): `lib/commands_handler/root_commands_helper.dart`
- [Device power](https://github.com/landchit/chitils/blob/main/lib/utility_groups/device_power_utlility.dart): `lib/utility_groups/device_power_utlility.dart`
- [MIUI Monet](https://github.com/landchit/chitils/blob/main/lib/utility_groups/miui_monet_utility.dart): `lib/utility_groups/miui_monet_utility.dart`

### Shared UI

- [Mod tile](https://github.com/landchit/chitils/blob/main/lib/widgets/mod_utility_tile.dart): `lib/widgets/mod_utility_tile.dart`
- [Title widget](https://github.com/landchit/chitils/blob/main/lib/widgets/title_widget.dart): `lib/widgets/title_widget.dart`

### Other components

- **User**

## Connections

- User → App entry: opens
- App entry → Home screen: starts
- Home screen → Mod screen: navigates
- Mod screen → Root commands: invokes
- Mod screen → Download screen: navigates
- Mod screen → Progress screen: navigates
- App entry → Settings screen: navigates
- Root commands → Command helpers: delegates
- Root commands → Device power: dispatches
- Root commands → MIUI Monet: dispatches
- Mod screen → Mod tile: renders
- Home screen → Title widget: renders
