# 0x1c1101/iredroid architecture

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

- Interactive diagram: https://gitdiagram.com/0x1c1101/iredroid
- Repository: https://github.com/0x1c1101/iredroid

## Overview

IReDroid is a Flutter infrared remote-control app for Android phones with IR blasters. Its user-facing workflow is selecting a built-in or custom remote, choosing a command, and transmitting an IR signal; users can also fuzz devices by category. The README documents the Flipper Zero database, custom-remote editing, and NEC, NECext, and Raw protocol support. The tree identifies corresponding screens and utilities, but their source was not sampled, so the component relationships below are limited to README-supported capabilities; implementation details and platform-specific dispatch are not asserted.

Main entry points: [`lib/utils/ir_transmitter.dart`](https://github.com/0x1c1101/iredroid/blob/main/lib/utils/ir_transmitter.dart) (IR transmitter), [`lib/screens/flipper_tab.dart`](https://github.com/0x1c1101/iredroid/blob/main/lib/screens/flipper_tab.dart) (Flipper remotes), [`lib/main.dart`](https://github.com/0x1c1101/iredroid/blob/main/lib/main.dart) (Flutter app), [`lib/screens/custom_tab.dart`](https://github.com/0x1c1101/iredroid/blob/main/lib/screens/custom_tab.dart) (Custom remotes)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["Remote experience"]
  node_app["Flutter app<br/>[main.dart]"]
  node_main_screen["Main screen<br/>[main_screen.dart]"]
  node_flipper_tab["Flipper remotes<br/>[flipper_tab.dart]"]
  node_custom_tab["Custom remotes<br/>[custom_tab.dart]"]
  node_remote_control["Remote control"]
  node_fuzzer_tab["Category fuzzer<br/>[fuzzer_tab.dart]"]
end

subgraph group_catalog["Remote data"]
  node_device_model["IR device model<br/>[ir_device.dart]"]
  node_flipper_db[("Flipper IR database<br/>[flipper_irdb.dart]")]
  node_database_archive["Flipper database archive<br/>[flipper-irdb.zip]"]
end

subgraph group_transmission["IR transmission"]
  node_ir_parser["IR file parser"]
  node_ir_transmitter["IR transmitter"]
end

subgraph group_preferences["App preferences"]
  node_settings_tab["Settings screen<br/>[settings_tab.dart]"]
  node_app_settings["App settings<br/>[app_settings.dart]"]
end

node_user(("User"))
node_ir_device(("IR-controlled device"))

node_user -->|"uses"| node_app
node_app -->|"presents"| node_main_screen
node_user -->|"selects remote"| node_flipper_tab
node_user -->|"edits remote"| node_custom_tab
node_user -->|"fuzzes category"| node_fuzzer_tab
node_user -->|"controls device"| node_remote_control
node_flipper_db -.->|"uses data"| node_database_archive
node_flipper_tab -->|"browses database"| node_flipper_db
node_flipper_tab -.->|"uses device records"| node_device_model
node_custom_tab -.->|"edits remote data"| node_device_model
node_fuzzer_tab -.->|"fuzzes commands"| node_ir_transmitter
node_remote_control -.->|"sends commands"| node_ir_transmitter
node_ir_parser -.->|"provides parsed signals"| node_ir_transmitter
node_ir_transmitter -->|"transmits infrared"| node_ir_device
node_settings_tab -.->|"configures preferences"| node_app_settings

click node_app "https://github.com/0x1c1101/iredroid/blob/main/lib/main.dart"
click node_main_screen "https://github.com/0x1c1101/iredroid/blob/main/lib/screens/main_screen.dart"
click node_flipper_tab "https://github.com/0x1c1101/iredroid/blob/main/lib/screens/flipper_tab.dart"
click node_custom_tab "https://github.com/0x1c1101/iredroid/blob/main/lib/screens/custom_tab.dart"
click node_remote_control "https://github.com/0x1c1101/iredroid/blob/main/lib/screens/remote_control_screen.dart"
click node_fuzzer_tab "https://github.com/0x1c1101/iredroid/blob/main/lib/screens/fuzzer_tab.dart"
click node_device_model "https://github.com/0x1c1101/iredroid/blob/main/lib/models/ir_device.dart"
click node_flipper_db "https://github.com/0x1c1101/iredroid/blob/main/lib/utils/flipper_irdb.dart"
click node_database_archive "https://github.com/0x1c1101/iredroid/blob/main/assets/flipper-irdb.zip"
click node_ir_parser "https://github.com/0x1c1101/iredroid/blob/main/lib/utils/ir_file_parser.dart"
click node_ir_transmitter "https://github.com/0x1c1101/iredroid/blob/main/lib/utils/ir_transmitter.dart"
click node_settings_tab "https://github.com/0x1c1101/iredroid/blob/main/lib/screens/settings_tab.dart"
click node_app_settings "https://github.com/0x1c1101/iredroid/blob/main/lib/utils/app_settings.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,node_main_screen,node_flipper_tab,node_custom_tab,node_remote_control,node_fuzzer_tab,node_user toneBlue
class node_device_model,node_flipper_db,node_database_archive toneAmber
class node_ir_parser,node_ir_transmitter toneMint
class node_settings_tab,node_app_settings toneRose
class node_ir_device toneIndigo
```

## Components

### Remote experience

- [Flutter app](https://github.com/0x1c1101/iredroid/blob/main/lib/main.dart): `lib/main.dart`
- [Main screen](https://github.com/0x1c1101/iredroid/blob/main/lib/screens/main_screen.dart): `lib/screens/main_screen.dart`
- [Flipper remotes](https://github.com/0x1c1101/iredroid/blob/main/lib/screens/flipper_tab.dart): `lib/screens/flipper_tab.dart`
- [Custom remotes](https://github.com/0x1c1101/iredroid/blob/main/lib/screens/custom_tab.dart): `lib/screens/custom_tab.dart`
- [Remote control](https://github.com/0x1c1101/iredroid/blob/main/lib/screens/remote_control_screen.dart): `lib/screens/remote_control_screen.dart`
- [Category fuzzer](https://github.com/0x1c1101/iredroid/blob/main/lib/screens/fuzzer_tab.dart): `lib/screens/fuzzer_tab.dart`

### Remote data

- [IR device model](https://github.com/0x1c1101/iredroid/blob/main/lib/models/ir_device.dart): `lib/models/ir_device.dart`
- [Flipper IR database](https://github.com/0x1c1101/iredroid/blob/main/lib/utils/flipper_irdb.dart): `lib/utils/flipper_irdb.dart`
- [Flipper database archive](https://github.com/0x1c1101/iredroid/blob/main/assets/flipper-irdb.zip): `assets/flipper-irdb.zip`

### IR transmission

- [IR file parser](https://github.com/0x1c1101/iredroid/blob/main/lib/utils/ir_file_parser.dart): `lib/utils/ir_file_parser.dart`
- [IR transmitter](https://github.com/0x1c1101/iredroid/blob/main/lib/utils/ir_transmitter.dart): `lib/utils/ir_transmitter.dart`

### App preferences

- [Settings screen](https://github.com/0x1c1101/iredroid/blob/main/lib/screens/settings_tab.dart): `lib/screens/settings_tab.dart`
- [App settings](https://github.com/0x1c1101/iredroid/blob/main/lib/utils/app_settings.dart): `lib/utils/app_settings.dart`

### Other components

- **User**
- **IR-controlled device**

## Connections

- User → Flutter app: uses (evidence: `README.md`)
- Flutter app → Main screen: presents
- User → Flipper remotes: selects remote (evidence: `README.md`)
- User → Custom remotes: edits remote (evidence: `README.md`)
- User → Category fuzzer: fuzzes category (evidence: `README.md`)
- User → Remote control: controls device (evidence: `README.md`)
- Flipper IR database → Flipper database archive: uses data
- Flipper remotes → Flipper IR database: browses database (evidence: `README.md`)
- Flipper remotes → IR device model: uses device records
- Custom remotes → IR device model: edits remote data
- Category fuzzer → IR transmitter: fuzzes commands
- Remote control → IR transmitter: sends commands
- IR file parser → IR transmitter: provides parsed signals
- IR transmitter → IR-controlled device: transmits infrared (evidence: `README.md`)
- Settings screen → App settings: configures preferences
