# imarooz/seb7a architecture

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

- Interactive diagram: https://gitdiagram.com/imarooz/seb7a
- Repository: https://github.com/imarooz/seb7a

## Overview

Seb7a is a Flutter app for counting Istighfār, choosing a color theme, and retaining counter data between launches. The user interacts with the home screen to increment or reset the counter and view counter, repeat, and total values. The README documents themes and persistent storage, but no Dart source was excerpted, so internal calls and widget relationships are shown only as unverified dashed links; the graph does not infer native-platform wiring.

Main entry points: [`lib/widgets/home_body.dart`](https://github.com/imarooz/seb7a/blob/main/lib/widgets/home_body.dart) (Home body), [`lib/screens/home_screen.dart`](https://github.com/imarooz/seb7a/blob/main/lib/screens/home_screen.dart) (Home screen), [`lib/widgets/home_body_radio_row.dart`](https://github.com/imarooz/seb7a/blob/main/lib/widgets/home_body_radio_row.dart) (Theme choices), [`lib/widgets/home_counter_row.dart`](https://github.com/imarooz/seb7a/blob/main/lib/widgets/home_counter_row.dart) (Counter values)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["App and screen"]
  node_entry["App entry<br/>[main.dart]"]
  node_home["Home screen<br/>[home_screen.dart]"]
  node_appbar["App bar"]
end

subgraph group_counter["Counter interface"]
  node_body["Home body<br/>[home_body.dart]"]
  node_actions["Counter action"]
  node_result["Counter result"]
  node_radio["Theme choices"]
  node_radioitem["Theme option"]
  node_counterrow["Counter values"]
  node_badge["Counter badge"]
end

subgraph group_support["Theme and storage"]
  node_colors["Color palettes<br/>[colors.dart]"]
  node_storage["Local persistence"]
end

node_user(("App user"))

node_user -.->|"uses"| node_home
node_entry -.->|"opens"| node_home
node_home -.->|"builds"| node_body
node_body -.->|"offers reset"| node_actions
node_body -.->|"shows"| node_result
node_body -.->|"offers themes"| node_radio
node_radio -.->|"uses"| node_radioitem
node_body -.->|"shows totals"| node_counterrow
node_counterrow -.->|"uses"| node_badge
node_home -.->|"displays"| node_appbar
node_radio -.->|"selects palette"| node_colors
node_home -.->|"persists counter"| node_storage

click node_entry "https://github.com/imarooz/seb7a/blob/main/lib/main.dart"
click node_home "https://github.com/imarooz/seb7a/blob/main/lib/screens/home_screen.dart"
click node_body "https://github.com/imarooz/seb7a/blob/main/lib/widgets/home_body.dart"
click node_actions "https://github.com/imarooz/seb7a/blob/main/lib/widgets/floating_action_button_widget.dart"
click node_result "https://github.com/imarooz/seb7a/blob/main/lib/widgets/home_body_result.dart"
click node_radio "https://github.com/imarooz/seb7a/blob/main/lib/widgets/home_body_radio_row.dart"
click node_radioitem "https://github.com/imarooz/seb7a/blob/main/lib/widgets/radio_button_item.dart"
click node_counterrow "https://github.com/imarooz/seb7a/blob/main/lib/widgets/home_counter_row.dart"
click node_badge "https://github.com/imarooz/seb7a/blob/main/lib/widgets/home_counter_badge.dart"
click node_appbar "https://github.com/imarooz/seb7a/blob/main/lib/widgets/app_bar_widget.dart"
click node_colors "https://github.com/imarooz/seb7a/blob/main/lib/themes/colors.dart"
click node_storage "https://github.com/imarooz/seb7a/blob/main/lib/services/local_storage_service.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_appbar,node_user toneBlue
class node_body,node_actions,node_result,node_radio,node_radioitem,node_counterrow,node_badge toneAmber
class node_colors,node_storage toneMint
```

## Components

### App and screen

- [App entry](https://github.com/imarooz/seb7a/blob/main/lib/main.dart): `lib/main.dart`
- [Home screen](https://github.com/imarooz/seb7a/blob/main/lib/screens/home_screen.dart): `lib/screens/home_screen.dart`
- [App bar](https://github.com/imarooz/seb7a/blob/main/lib/widgets/app_bar_widget.dart): `lib/widgets/app_bar_widget.dart`

### Counter interface

- [Home body](https://github.com/imarooz/seb7a/blob/main/lib/widgets/home_body.dart): `lib/widgets/home_body.dart`
- [Counter action](https://github.com/imarooz/seb7a/blob/main/lib/widgets/floating_action_button_widget.dart): `lib/widgets/floating_action_button_widget.dart`
- [Counter result](https://github.com/imarooz/seb7a/blob/main/lib/widgets/home_body_result.dart): `lib/widgets/home_body_result.dart`
- [Theme choices](https://github.com/imarooz/seb7a/blob/main/lib/widgets/home_body_radio_row.dart): `lib/widgets/home_body_radio_row.dart`
- [Theme option](https://github.com/imarooz/seb7a/blob/main/lib/widgets/radio_button_item.dart): `lib/widgets/radio_button_item.dart`
- [Counter values](https://github.com/imarooz/seb7a/blob/main/lib/widgets/home_counter_row.dart): `lib/widgets/home_counter_row.dart`
- [Counter badge](https://github.com/imarooz/seb7a/blob/main/lib/widgets/home_counter_badge.dart): `lib/widgets/home_counter_badge.dart`

### Theme and storage

- [Color palettes](https://github.com/imarooz/seb7a/blob/main/lib/themes/colors.dart): `lib/themes/colors.dart`
- [Local persistence](https://github.com/imarooz/seb7a/blob/main/lib/services/local_storage_service.dart): `lib/services/local_storage_service.dart`

### Other components

- **App user**

## Connections

- App user → Home screen: uses
- App entry → Home screen: opens
- Home screen → Home body: builds
- Home body → Counter action: offers reset
- Home body → Counter result: shows
- Home body → Theme choices: offers themes
- Theme choices → Theme option: uses
- Home body → Counter values: shows totals
- Counter values → Counter badge: uses
- Home screen → App bar: displays
- Theme choices → Color palettes: selects palette
- Home screen → Local persistence: persists counter
