# vicolo-dev/chrono architecture

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

- Interactive diagram: https://gitdiagram.com/vicolo-dev/chrono
- Repository: https://github.com/vicolo-dev/chrono

## Overview

Chrono is an Android clock utility app built with Flutter. Users enter through the app interface to configure and use alarms, world clocks, timers, and a stopwatch; settings and appearance options customize those experiences. The tree and README identify these product areas, but Flutter implementation excerpts were not provided, so connections between them are left unverified. The sampled Android code does show both clock widget providers opening MainActivity; broader widget-to-Flutter data flow is not established by the excerpts.

Main entry points: [`lib/alarm`](https://github.com/vicolo-dev/chrono/tree/master/lib/alarm) (Alarms), [`lib/navigation`](https://github.com/vicolo-dev/chrono/tree/master/lib/navigation) (Navigation), [`lib/timer`](https://github.com/vicolo-dev/chrono/tree/master/lib/timer) (Timers), [`lib/common`](https://github.com/vicolo-dev/chrono/tree/master/lib/common) (Shared UI)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["App shell"]
  node_main["Flutter entry<br/>[main.dart]"]
  node_navigation["Navigation"]
end

subgraph group_time["Time features"]
  node_alarms["Alarms"]
  node_alarm_runtime["Alarm runtime"]
  node_clock["World clock"]
  node_timer["Timers"]
  node_stopwatch["Stopwatch"]
  node_audio["Ringtones"]
end

subgraph group_platform["Android integration"]
  node_notifications["Notifications"]
  node_system["System services"]
  node_digital_widget["Digital widget"]
  node_analogue_widget["Analogue widget"]
  node_activity["Android activity<br/>[MainActivity.kt]"]
end

subgraph group_settings["Customization"]
  node_settings["Settings"]
  node_theme["Themes"]
  node_shared["Shared UI"]
end

node_user(("App user"))

node_user -->|"uses"| node_main
node_main -.->|"opens"| node_navigation
node_navigation -.->|"routes to"| node_alarms
node_navigation -.->|"routes to"| node_clock
node_navigation -.->|"routes to"| node_timer
node_navigation -.->|"routes to"| node_stopwatch
node_alarms -.->|"schedules"| node_alarm_runtime
node_alarms -.->|"configures"| node_audio
node_timer -.->|"configures"| node_audio
node_alarms -.->|"alerts through"| node_notifications
node_timer -.->|"alerts through"| node_notifications
node_system -.->|"supports"| node_alarm_runtime
node_settings -.->|"customizes"| node_alarms
node_settings -.->|"customizes"| node_timer
node_settings -.->|"configures"| node_theme
node_alarms -.->|"uses"| node_shared
node_clock -.->|"uses"| node_shared
node_timer -.->|"uses"| node_shared
node_stopwatch -.->|"uses"| node_shared
node_digital_widget -->|"launches"| node_activity
node_analogue_widget -->|"launches"| node_activity

click node_main "https://github.com/vicolo-dev/chrono/blob/master/lib/main.dart"
click node_navigation "https://github.com/vicolo-dev/chrono/tree/master/lib/navigation"
click node_alarms "https://github.com/vicolo-dev/chrono/tree/master/lib/alarm"
click node_alarm_runtime "https://github.com/vicolo-dev/chrono/tree/master/lib/alarm/logic"
click node_clock "https://github.com/vicolo-dev/chrono/tree/master/lib/clock"
click node_timer "https://github.com/vicolo-dev/chrono/tree/master/lib/timer"
click node_stopwatch "https://github.com/vicolo-dev/chrono/tree/master/lib/stopwatch"
click node_audio "https://github.com/vicolo-dev/chrono/tree/master/lib/audio"
click node_notifications "https://github.com/vicolo-dev/chrono/tree/master/lib/notifications"
click node_system "https://github.com/vicolo-dev/chrono/tree/master/lib/system"
click node_digital_widget "https://github.com/vicolo-dev/chrono/blob/master/android/app/src/main/kotlin/com/vicolo/chrono/DigitalClockWidgetProvider.kt"
click node_analogue_widget "https://github.com/vicolo-dev/chrono/blob/master/android/app/src/main/kotlin/com/vicolo/chrono/AnalogueClockWidgetProvider.kt"
click node_activity "https://github.com/vicolo-dev/chrono/blob/master/android/app/src/main/kotlin/com/vicolo/chrono/MainActivity.kt"
click node_settings "https://github.com/vicolo-dev/chrono/tree/master/lib/settings"
click node_theme "https://github.com/vicolo-dev/chrono/tree/master/lib/theme"
click node_shared "https://github.com/vicolo-dev/chrono/tree/master/lib/common"

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_main,node_navigation,node_user toneBlue
class node_alarms,node_alarm_runtime,node_clock,node_timer,node_stopwatch,node_audio toneAmber
class node_notifications,node_system,node_digital_widget,node_analogue_widget,node_activity toneMint
class node_settings,node_theme,node_shared toneRose
```

## Components

### App shell

- [Flutter entry](https://github.com/vicolo-dev/chrono/blob/master/lib/main.dart): `lib/main.dart`
- [Navigation](https://github.com/vicolo-dev/chrono/tree/master/lib/navigation): `lib/navigation`

### Time features

- [Alarms](https://github.com/vicolo-dev/chrono/tree/master/lib/alarm): `lib/alarm`
- [Alarm runtime](https://github.com/vicolo-dev/chrono/tree/master/lib/alarm/logic): `lib/alarm/logic`
- [World clock](https://github.com/vicolo-dev/chrono/tree/master/lib/clock): `lib/clock`
- [Timers](https://github.com/vicolo-dev/chrono/tree/master/lib/timer): `lib/timer`
- [Stopwatch](https://github.com/vicolo-dev/chrono/tree/master/lib/stopwatch): `lib/stopwatch`
- [Ringtones](https://github.com/vicolo-dev/chrono/tree/master/lib/audio): `lib/audio`

### Android integration

- [Notifications](https://github.com/vicolo-dev/chrono/tree/master/lib/notifications): `lib/notifications`
- [System services](https://github.com/vicolo-dev/chrono/tree/master/lib/system): `lib/system`
- [Digital widget](https://github.com/vicolo-dev/chrono/blob/master/android/app/src/main/kotlin/com/vicolo/chrono/DigitalClockWidgetProvider.kt): `android/app/src/main/kotlin/com/vicolo/chrono/DigitalClockWidgetProvider.kt`
- [Analogue widget](https://github.com/vicolo-dev/chrono/blob/master/android/app/src/main/kotlin/com/vicolo/chrono/AnalogueClockWidgetProvider.kt): `android/app/src/main/kotlin/com/vicolo/chrono/AnalogueClockWidgetProvider.kt`
- [Android activity](https://github.com/vicolo-dev/chrono/blob/master/android/app/src/main/kotlin/com/vicolo/chrono/MainActivity.kt): `android/app/src/main/kotlin/com/vicolo/chrono/MainActivity.kt`

### Customization

- [Settings](https://github.com/vicolo-dev/chrono/tree/master/lib/settings): `lib/settings`
- [Themes](https://github.com/vicolo-dev/chrono/tree/master/lib/theme): `lib/theme`
- [Shared UI](https://github.com/vicolo-dev/chrono/tree/master/lib/common): `lib/common`

### Other components

- **App user**

## Connections

- App user → Flutter entry: uses (evidence: `README.md`)
- Flutter entry → Navigation: opens
- Navigation → Alarms: routes to
- Navigation → World clock: routes to
- Navigation → Timers: routes to
- Navigation → Stopwatch: routes to
- Alarms → Alarm runtime: schedules
- Alarms → Ringtones: configures
- Timers → Ringtones: configures
- Alarms → Notifications: alerts through
- Timers → Notifications: alerts through
- System services → Alarm runtime: supports
- Settings → Alarms: customizes
- Settings → Timers: customizes
- Settings → Themes: configures
- Alarms → Shared UI: uses
- World clock → Shared UI: uses
- Timers → Shared UI: uses
- Stopwatch → Shared UI: uses
- Digital widget → Android activity: launches (evidence: `android/app/src/main/kotlin/com/vicolo/chrono/DigitalClockWidgetProvider.kt`)
- Analogue widget → Android activity: launches (evidence: `android/app/src/main/kotlin/com/vicolo/chrono/AnalogueClockWidgetProvider.kt`)
