# binary-is/alcoholnow architecture

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

- Interactive diagram: https://gitdiagram.com/binary-is/alcoholnow
- Repository: https://github.com/binary-is/alcoholnow

## Overview

AlcoholNow is a Flutter mobile app that quickly shows Icelandic alcohol stores, their opening hours, current open status, and—when location services are enabled—distance-ordered results. The likely user journey starts in the app and reaches a dealer list, with settings and supporting dealer, timing, language, and configuration modules in the repository. Dart source was not sampled, so internal call relationships are shown only as unverified dashed links; the feature and location relationships are documented in the README.

Main entry points: [`lib/widgets/dealerlist.dart`](https://github.com/binary-is/alcoholnow/blob/master/lib/widgets/dealerlist.dart) (Dealer list), [`lib/pages/dealerpage.dart`](https://github.com/binary-is/alcoholnow/blob/master/lib/pages/dealerpage.dart) (Dealer page), [`lib/main.dart`](https://github.com/binary-is/alcoholnow/blob/master/lib/main.dart) (App entry), [`lib/pages/settingspage.dart`](https://github.com/binary-is/alcoholnow/blob/master/lib/pages/settingspage.dart) (Settings page)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["App experience"]
  node_app["App entry<br/>[main.dart]"]
  node_dealer_page["Dealer page<br/>[dealerpage.dart]"]
  node_dealer_list["Dealer list<br/>[dealerlist.dart]"]
  node_settings["Settings page<br/>[settingspage.dart]"]
end

subgraph group_domain["Dealer information"]
  node_dealer["Dealer model<br/>[dealer.dart]"]
  node_timing["Opening times<br/>[timing_utils.dart]"]
end

subgraph group_support["App support"]
  node_constants["App constants<br/>[constants.dart]"]
  node_language["Language support<br/>[language.dart]"]
end

node_user(("Mobile user"))
node_location(("Location services"))

node_user -->|"opens"| node_app
node_app -.->|"shows"| node_dealer_page
node_dealer_page -.->|"displays"| node_dealer_list
node_dealer_page -.->|"offers"| node_settings
node_dealer_list -.->|"lists stores"| node_dealer
node_dealer_list -.->|"shows hours"| node_timing
node_location -->|"enables distance order"| node_dealer_list

click node_app "https://github.com/binary-is/alcoholnow/blob/master/lib/main.dart"
click node_dealer_page "https://github.com/binary-is/alcoholnow/blob/master/lib/pages/dealerpage.dart"
click node_dealer_list "https://github.com/binary-is/alcoholnow/blob/master/lib/widgets/dealerlist.dart"
click node_settings "https://github.com/binary-is/alcoholnow/blob/master/lib/pages/settingspage.dart"
click node_dealer "https://github.com/binary-is/alcoholnow/blob/master/lib/models/dealer.dart"
click node_timing "https://github.com/binary-is/alcoholnow/blob/master/lib/timing_utils.dart"
click node_constants "https://github.com/binary-is/alcoholnow/blob/master/lib/constants.dart"
click node_language "https://github.com/binary-is/alcoholnow/blob/master/lib/language.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_dealer_page,node_dealer_list,node_settings,node_user toneBlue
class node_dealer,node_timing toneAmber
class node_constants,node_language toneMint
class node_location toneIndigo
```

## Components

### App experience

- [App entry](https://github.com/binary-is/alcoholnow/blob/master/lib/main.dart): `lib/main.dart`
- [Dealer page](https://github.com/binary-is/alcoholnow/blob/master/lib/pages/dealerpage.dart): `lib/pages/dealerpage.dart`
- [Dealer list](https://github.com/binary-is/alcoholnow/blob/master/lib/widgets/dealerlist.dart): `lib/widgets/dealerlist.dart`
- [Settings page](https://github.com/binary-is/alcoholnow/blob/master/lib/pages/settingspage.dart): `lib/pages/settingspage.dart`

### Dealer information

- [Dealer model](https://github.com/binary-is/alcoholnow/blob/master/lib/models/dealer.dart): `lib/models/dealer.dart`
- [Opening times](https://github.com/binary-is/alcoholnow/blob/master/lib/timing_utils.dart): `lib/timing_utils.dart`

### App support

- [App constants](https://github.com/binary-is/alcoholnow/blob/master/lib/constants.dart): `lib/constants.dart`
- [Language support](https://github.com/binary-is/alcoholnow/blob/master/lib/language.dart): `lib/language.dart`

### Other components

- **Mobile user**
- **Location services**

## Connections

- Mobile user → App entry: opens (evidence: `README.md`)
- App entry → Dealer page: shows
- Dealer page → Dealer list: displays
- Dealer page → Settings page: offers
- Dealer list → Dealer model: lists stores
- Dealer list → Opening times: shows hours
- Location services → Dealer list: enables distance order (evidence: `README.md`)
