# hariom317/aadhar-card-generator architecture

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

- Interactive diagram: https://gitdiagram.com/hariom317/aadhar-card-generator
- Repository: https://github.com/hariom317/aadhar-card-generator

## Overview

This is a small Flutter app for creating fictional Aadhaar-style cards for educational and entertainment use. The documented user journey is to launch the app, enter custom details, and generate a card to explore its layout. The tree suggests corresponding entry-point, screen, and shared-UI modules, but their Dart implementations were not excerpted, so links between those modules are shown as unverified. The README also describes customizable layouts and educational insight; no external services or persistent storage are documented.

Main entry points: [`lib/widget/get_details.dart`](https://github.com/hariom317/aadhar-card-generator/blob/master/lib/widget/get_details.dart) (Details and card), [`lib/main.dart`](https://github.com/hariom317/aadhar-card-generator/blob/master/lib/main.dart) (App entry), [`lib/widget/splash_screen.dart`](https://github.com/hariom317/aadhar-card-generator/blob/master/lib/widget/splash_screen.dart) (Splash screen), [`lib/widget/homepage.dart`](https://github.com/hariom317/aadhar-card-generator/blob/master/lib/widget/homepage.dart) (Home screen)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app_flow["App flow"]
  node_main["App entry<br/>[main.dart]"]
  node_splash["Splash screen<br/>[splash_screen.dart]"]
  node_home["Home screen<br/>[homepage.dart]"]
end

subgraph group_card_ui["Card interface"]
  node_details["Details and card<br/>[get_details.dart]"]
end

subgraph group_shared_ui["Shared UI"]
  node_textfield["Custom text field"]
  node_constants["UI constants<br/>[constants.dart]"]
  node_colors["Material colors"]
end

node_user(("User"))

node_user -.->|"launches"| node_main
node_main -.->|"starts"| node_splash
node_splash -.->|"continues to"| node_home
node_home -.->|"opens details"| node_details
node_details -.->|"uses input"| node_textfield
node_user -.->|"enters details"| node_details

click node_main "https://github.com/hariom317/aadhar-card-generator/blob/master/lib/main.dart"
click node_splash "https://github.com/hariom317/aadhar-card-generator/blob/master/lib/widget/splash_screen.dart"
click node_home "https://github.com/hariom317/aadhar-card-generator/blob/master/lib/widget/homepage.dart"
click node_details "https://github.com/hariom317/aadhar-card-generator/blob/master/lib/widget/get_details.dart"
click node_textfield "https://github.com/hariom317/aadhar-card-generator/blob/master/lib/components/custom_textfield.dart"
click node_constants "https://github.com/hariom317/aadhar-card-generator/blob/master/lib/utils/constants.dart"
click node_colors "https://github.com/hariom317/aadhar-card-generator/blob/master/lib/utils/custom_material_color.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_main,node_splash,node_home,node_user toneBlue
class node_details toneAmber
class node_textfield,node_constants,node_colors toneMint
```

## Components

### App flow

- [App entry](https://github.com/hariom317/aadhar-card-generator/blob/master/lib/main.dart): `lib/main.dart`
- [Splash screen](https://github.com/hariom317/aadhar-card-generator/blob/master/lib/widget/splash_screen.dart): `lib/widget/splash_screen.dart`
- [Home screen](https://github.com/hariom317/aadhar-card-generator/blob/master/lib/widget/homepage.dart): `lib/widget/homepage.dart`

### Card interface

- [Details and card](https://github.com/hariom317/aadhar-card-generator/blob/master/lib/widget/get_details.dart): `lib/widget/get_details.dart`

### Shared UI

- [Custom text field](https://github.com/hariom317/aadhar-card-generator/blob/master/lib/components/custom_textfield.dart): `lib/components/custom_textfield.dart`
- [UI constants](https://github.com/hariom317/aadhar-card-generator/blob/master/lib/utils/constants.dart): `lib/utils/constants.dart`
- [Material colors](https://github.com/hariom317/aadhar-card-generator/blob/master/lib/utils/custom_material_color.dart): `lib/utils/custom_material_color.dart`

### Other components

- **User**

## Connections

- User → App entry: launches
- App entry → Splash screen: starts
- Splash screen → Home screen: continues to
- Home screen → Details and card: opens details
- Details and card → Custom text field: uses input
- User → Details and card: enters details
