# zjpjohn/prize_lottery_app architecture

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

- Interactive diagram: https://gitdiagram.com/zjpjohn/prize_lottery_app
- Repository: https://github.com/zjpjohn/prize_lottery_app

## Overview

Prize Lottery is a Flutter lottery-information and analysis app. Users enter through the app’s home and lottery areas to browse draws, explore trends and statistics, and use prediction, filtering, expert, and account features. The README also highlights live draw streaming and draw reminders. The tree establishes these feature areas and their source directories, but no Dart source was excerpted, so internal call paths and backend interactions remain unverified; dashed edges show the principal workflow at that level.

Main entry points: [`lib/views/lottery`](https://github.com/zjpjohn/prize_lottery_app/tree/master/lib/views/lottery) (Lottery center), [`lib/main.dart`](https://github.com/zjpjohn/prize_lottery_app/blob/master/lib/main.dart) (Flutter app), [`lib/views/home`](https://github.com/zjpjohn/prize_lottery_app/tree/master/lib/views/home) (Home and channels), [`lib/views/expert`](https://github.com/zjpjohn/prize_lottery_app/tree/master/lib/views/expert) (Expert channel)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["App entry"]
  node_app["Flutter app<br/>[main.dart]"]
  node_home["Home and channels"]
  node_routing["Pages and routing"]
end

subgraph group_draws["Lottery data"]
  node_lottery["Lottery center"]
  node_drawsdata["Draw history"]
  node_live["Live results"]
  node_reminders["Draw reminders"]
end

subgraph group_analysis["Analysis tools"]
  node_census["Draw statistics"]
  node_trends["Number trends"]
  node_forecast["Forecasts"]
  node_shrink["Number filtering"]
  node_skills["Lottery tools"]
end

subgraph group_community["Experts and account"]
  node_experts["Expert channel"]
  node_rank["Expert rankings"]
  node_member["Member account"]
  node_payments["Membership payments"]
end

node_user(("Lottery user"))
node_backend[("Lottery backend")]

node_user -.->|"opens"| node_app
node_app -.->|"starts at"| node_home
node_home -.->|"selects pages"| node_routing
node_home -.->|"opens lottery"| node_lottery
node_lottery -.->|"browses results"| node_drawsdata
node_lottery -.->|"views live draws"| node_live
node_user -.->|"sets reminders"| node_reminders
node_lottery -.->|"explores statistics"| node_census
node_lottery -.->|"views trends"| node_trends
node_user -.->|"views predictions"| node_forecast
node_user -.->|"filters numbers"| node_shrink
node_user -.->|"uses tools"| node_skills
node_user -.->|"browses experts"| node_experts
node_experts -.->|"views rankings"| node_rank
node_user -.->|"manages account"| node_member
node_member -.->|"purchases membership"| node_payments
node_app -.->|"loads lottery data"| node_backend

click node_app "https://github.com/zjpjohn/prize_lottery_app/blob/master/lib/main.dart"
click node_home "https://github.com/zjpjohn/prize_lottery_app/tree/master/lib/views/home"
click node_routing "https://github.com/zjpjohn/prize_lottery_app/tree/master/lib/routes"
click node_lottery "https://github.com/zjpjohn/prize_lottery_app/tree/master/lib/views/lottery"
click node_drawsdata "https://github.com/zjpjohn/prize_lottery_app/tree/master/lib/views/lottery/repository"
click node_live "https://github.com/zjpjohn/prize_lottery_app/tree/master/lib/views/lottery"
click node_reminders "https://github.com/zjpjohn/prize_lottery_app/blob/master/lib/app/app_calendar_hint.dart"
click node_census "https://github.com/zjpjohn/prize_lottery_app/tree/master/lib/views/census"
click node_trends "https://github.com/zjpjohn/prize_lottery_app/tree/master/lib/views/lottery"
click node_forecast "https://github.com/zjpjohn/prize_lottery_app/tree/master/lib/views/forecast"
click node_shrink "https://github.com/zjpjohn/prize_lottery_app/tree/master/lib/views/shrink"
click node_skills "https://github.com/zjpjohn/prize_lottery_app/tree/master/lib/views/skill"
click node_experts "https://github.com/zjpjohn/prize_lottery_app/tree/master/lib/views/expert"
click node_rank "https://github.com/zjpjohn/prize_lottery_app/tree/master/lib/views/rank"
click node_member "https://github.com/zjpjohn/prize_lottery_app/tree/master/lib/views/user"
click node_payments "https://github.com/zjpjohn/prize_lottery_app/tree/master/lib/views/pay"

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_home,node_routing,node_user toneBlue
class node_lottery,node_drawsdata,node_live,node_reminders,node_backend toneAmber
class node_census,node_trends,node_forecast,node_shrink,node_skills toneMint
class node_experts,node_rank,node_member,node_payments toneRose
```

## Components

### App entry

- [Flutter app](https://github.com/zjpjohn/prize_lottery_app/blob/master/lib/main.dart): `lib/main.dart`
- [Home and channels](https://github.com/zjpjohn/prize_lottery_app/tree/master/lib/views/home): `lib/views/home`
- [Pages and routing](https://github.com/zjpjohn/prize_lottery_app/tree/master/lib/routes): `lib/routes`

### Lottery data

- [Lottery center](https://github.com/zjpjohn/prize_lottery_app/tree/master/lib/views/lottery): `lib/views/lottery`
- [Draw history](https://github.com/zjpjohn/prize_lottery_app/tree/master/lib/views/lottery/repository): `lib/views/lottery/repository`
- [Live results](https://github.com/zjpjohn/prize_lottery_app/tree/master/lib/views/lottery): `lib/views/lottery`
- [Draw reminders](https://github.com/zjpjohn/prize_lottery_app/blob/master/lib/app/app_calendar_hint.dart): `lib/app/app_calendar_hint.dart`

### Analysis tools

- [Draw statistics](https://github.com/zjpjohn/prize_lottery_app/tree/master/lib/views/census): `lib/views/census`
- [Number trends](https://github.com/zjpjohn/prize_lottery_app/tree/master/lib/views/lottery): `lib/views/lottery`
- [Forecasts](https://github.com/zjpjohn/prize_lottery_app/tree/master/lib/views/forecast): `lib/views/forecast`
- [Number filtering](https://github.com/zjpjohn/prize_lottery_app/tree/master/lib/views/shrink): `lib/views/shrink`
- [Lottery tools](https://github.com/zjpjohn/prize_lottery_app/tree/master/lib/views/skill): `lib/views/skill`

### Experts and account

- [Expert channel](https://github.com/zjpjohn/prize_lottery_app/tree/master/lib/views/expert): `lib/views/expert`
- [Expert rankings](https://github.com/zjpjohn/prize_lottery_app/tree/master/lib/views/rank): `lib/views/rank`
- [Member account](https://github.com/zjpjohn/prize_lottery_app/tree/master/lib/views/user): `lib/views/user`
- [Membership payments](https://github.com/zjpjohn/prize_lottery_app/tree/master/lib/views/pay): `lib/views/pay`

### Other components

- **Lottery user**
- **Lottery backend**

## Connections

- Lottery user → Flutter app: opens
- Flutter app → Home and channels: starts at
- Home and channels → Pages and routing: selects pages
- Home and channels → Lottery center: opens lottery
- Lottery center → Draw history: browses results
- Lottery center → Live results: views live draws
- Lottery user → Draw reminders: sets reminders
- Lottery center → Draw statistics: explores statistics
- Lottery center → Number trends: views trends
- Lottery user → Forecasts: views predictions
- Lottery user → Number filtering: filters numbers
- Lottery user → Lottery tools: uses tools
- Lottery user → Expert channel: browses experts
- Expert channel → Expert rankings: views rankings
- Lottery user → Member account: manages account
- Member account → Membership payments: purchases membership
- Flutter app → Lottery backend: loads lottery data
