# madhukanth1906/digital_payments architecture

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

- Interactive diagram: https://gitdiagram.com/madhukanth1906/digital_payments
- Repository: https://github.com/madhukanth1906/digital_payments

## Overview

FlexPay is a Flutter behavioral-biometric payments prototype. The user-facing path is app shell and route map into onboarding/authentication, then dashboard and payment screens through confirmation, processing, and success; separate branches cover security and community pools. Internal services include API, biometric, notification, and storage support. The README documents the capabilities and payment stages, but most Dart implementations were not sampled, so specific calls and service wiring are not asserted.

Main entry points: [`lib/core/routes/app_router.dart`](https://github.com/madhukanth1906/digital_payments/blob/main/lib/core/routes/app_router.dart) (Route Map), [`lib/features/payment/presentation/pages/confirmation_screen.dart`](https://github.com/madhukanth1906/digital_payments/blob/main/lib/features/payment/presentation/pages/confirmation_screen.dart) (Confirmation), [`lib/features/payment/presentation/pages/processing_screen.dart`](https://github.com/madhukanth1906/digital_payments/blob/main/lib/features/payment/presentation/pages/processing_screen.dart) (Processing), [`lib/app.dart`](https://github.com/madhukanth1906/digital_payments/blob/main/lib/app.dart) (App Shell)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["App Shell"]
  node_shell["App Shell<br/>[app.dart]"]
  node_router["Route Map<br/>[app_router.dart]"]
  node_home["Dashboard<br/>[home_screen.dart]"]
  node_history["History"]
  node_profile["Profile"]
end

subgraph group_identity["Identity Setup"]
  node_welcome["Welcome"]
  node_patterns["Pattern Setup"]
  node_security_setup["Security Setup"]
  node_signup["Sign Up<br/>[signup_screen.dart]"]
  node_login["Log In<br/>[login_screen.dart]"]
end

subgraph group_payments["Payments"]
  node_amount["Amount Entry"]
  node_qr["QR Scan"]
  node_confirmation["Confirmation"]
  node_processing["Processing"]
  node_success["Payment Success"]
end

subgraph group_security["Behavioral Security"]
  node_bio["Biometric Service"]
  node_security_center["Security Center"]
  node_fraud["Fraud Alert"]
  node_rating["Good Rating"]
end

subgraph group_support["Community And Services"]
  node_community["Community Pool"]
  node_api["API Service<br/>[api_service.dart]"]
  node_storage["Storage Service"]
  node_notifications["Notifications"]
end

node_user(("User"))

node_user -.->|"opens"| node_shell
node_shell -->|"uses routes"| node_router
node_router -.->|"routes to"| node_welcome
node_router -.->|"routes to"| node_patterns
node_router -.->|"routes to"| node_security_setup
node_router -.->|"routes to"| node_signup
node_router -.->|"routes to"| node_login
node_router -.->|"routes to"| node_home
node_router -.->|"routes to"| node_history
node_router -.->|"routes to"| node_profile
node_router -.->|"routes to"| node_amount
node_router -.->|"routes to"| node_qr
node_router -.->|"routes to"| node_confirmation
node_router -.->|"routes to"| node_processing
node_router -.->|"routes to"| node_success
node_router -.->|"routes to"| node_security_center
node_router -.->|"routes to"| node_fraud
node_router -.->|"routes to"| node_rating
node_router -.->|"routes to"| node_community
node_amount -.->|"continues to"| node_confirmation
node_confirmation -.->|"continues to"| node_processing
node_processing -.->|"continues to"| node_success
node_patterns -.->|"configures"| node_bio
node_security_center -.->|"uses patterns"| node_bio
node_fraud -.->|"alerts via"| node_notifications

click node_shell "https://github.com/madhukanth1906/digital_payments/blob/main/lib/app.dart"
click node_router "https://github.com/madhukanth1906/digital_payments/blob/main/lib/core/routes/app_router.dart"
click node_welcome "https://github.com/madhukanth1906/digital_payments/blob/main/lib/features/onboarding/presentation/pages/welcome_screen.dart"
click node_patterns "https://github.com/madhukanth1906/digital_payments/blob/main/lib/features/onboarding/presentation/pages/patterns_screen.dart"
click node_security_setup "https://github.com/madhukanth1906/digital_payments/blob/main/lib/features/onboarding/presentation/pages/security_screen.dart"
click node_signup "https://github.com/madhukanth1906/digital_payments/blob/main/lib/features/auth/presentation/pages/signup_screen.dart"
click node_login "https://github.com/madhukanth1906/digital_payments/blob/main/lib/features/auth/presentation/pages/login_screen.dart"
click node_home "https://github.com/madhukanth1906/digital_payments/blob/main/lib/features/home/presentation/pages/home_screen.dart"
click node_history "https://github.com/madhukanth1906/digital_payments/blob/main/lib/features/home/presentation/pages/history_screen.dart"
click node_profile "https://github.com/madhukanth1906/digital_payments/blob/main/lib/features/home/presentation/pages/profile_screen.dart"
click node_amount "https://github.com/madhukanth1906/digital_payments/blob/main/lib/features/payment/presentation/pages/amount_input_screen.dart"
click node_qr "https://github.com/madhukanth1906/digital_payments/blob/main/lib/features/payment/presentation/pages/qr_scan_screen.dart"
click node_confirmation "https://github.com/madhukanth1906/digital_payments/blob/main/lib/features/payment/presentation/pages/confirmation_screen.dart"
click node_processing "https://github.com/madhukanth1906/digital_payments/blob/main/lib/features/payment/presentation/pages/processing_screen.dart"
click node_success "https://github.com/madhukanth1906/digital_payments/blob/main/lib/features/payment/presentation/pages/success_screen.dart"
click node_bio "https://github.com/madhukanth1906/digital_payments/blob/main/lib/core/services/behavioral_biometrics_service.dart"
click node_security_center "https://github.com/madhukanth1906/digital_payments/blob/main/lib/features/security/presentation/pages/security_center_screen.dart"
click node_fraud "https://github.com/madhukanth1906/digital_payments/blob/main/lib/features/security/presentation/pages/fraud_alert_screen.dart"
click node_rating "https://github.com/madhukanth1906/digital_payments/blob/main/lib/features/security/presentation/pages/good_rating_screen.dart"
click node_community "https://github.com/madhukanth1906/digital_payments/blob/main/lib/features/community/presentation/pages/community_pool_screen.dart"
click node_api "https://github.com/madhukanth1906/digital_payments/blob/main/lib/core/services/api_service.dart"
click node_storage "https://github.com/madhukanth1906/digital_payments/blob/main/lib/core/services/storage_service.dart"
click node_notifications "https://github.com/madhukanth1906/digital_payments/blob/main/lib/core/services/notification_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_shell,node_router,node_home,node_history,node_profile,node_user toneBlue
class node_welcome,node_patterns,node_security_setup,node_signup,node_login toneAmber
class node_amount,node_qr,node_confirmation,node_processing,node_success toneMint
class node_bio,node_security_center,node_fraud,node_rating toneRose
class node_community,node_api,node_storage,node_notifications toneIndigo
```

## Components

### App Shell

- [App Shell](https://github.com/madhukanth1906/digital_payments/blob/main/lib/app.dart): `lib/app.dart`
- [Route Map](https://github.com/madhukanth1906/digital_payments/blob/main/lib/core/routes/app_router.dart): `lib/core/routes/app_router.dart`
- [Dashboard](https://github.com/madhukanth1906/digital_payments/blob/main/lib/features/home/presentation/pages/home_screen.dart): `lib/features/home/presentation/pages/home_screen.dart`
- [History](https://github.com/madhukanth1906/digital_payments/blob/main/lib/features/home/presentation/pages/history_screen.dart): `lib/features/home/presentation/pages/history_screen.dart`
- [Profile](https://github.com/madhukanth1906/digital_payments/blob/main/lib/features/home/presentation/pages/profile_screen.dart): `lib/features/home/presentation/pages/profile_screen.dart`

### Identity Setup

- [Welcome](https://github.com/madhukanth1906/digital_payments/blob/main/lib/features/onboarding/presentation/pages/welcome_screen.dart): `lib/features/onboarding/presentation/pages/welcome_screen.dart`
- [Pattern Setup](https://github.com/madhukanth1906/digital_payments/blob/main/lib/features/onboarding/presentation/pages/patterns_screen.dart): `lib/features/onboarding/presentation/pages/patterns_screen.dart`
- [Security Setup](https://github.com/madhukanth1906/digital_payments/blob/main/lib/features/onboarding/presentation/pages/security_screen.dart): `lib/features/onboarding/presentation/pages/security_screen.dart`
- [Sign Up](https://github.com/madhukanth1906/digital_payments/blob/main/lib/features/auth/presentation/pages/signup_screen.dart): `lib/features/auth/presentation/pages/signup_screen.dart`
- [Log In](https://github.com/madhukanth1906/digital_payments/blob/main/lib/features/auth/presentation/pages/login_screen.dart): `lib/features/auth/presentation/pages/login_screen.dart`

### Payments

- [Amount Entry](https://github.com/madhukanth1906/digital_payments/blob/main/lib/features/payment/presentation/pages/amount_input_screen.dart): `lib/features/payment/presentation/pages/amount_input_screen.dart`
- [QR Scan](https://github.com/madhukanth1906/digital_payments/blob/main/lib/features/payment/presentation/pages/qr_scan_screen.dart): `lib/features/payment/presentation/pages/qr_scan_screen.dart`
- [Confirmation](https://github.com/madhukanth1906/digital_payments/blob/main/lib/features/payment/presentation/pages/confirmation_screen.dart): `lib/features/payment/presentation/pages/confirmation_screen.dart`
- [Processing](https://github.com/madhukanth1906/digital_payments/blob/main/lib/features/payment/presentation/pages/processing_screen.dart): `lib/features/payment/presentation/pages/processing_screen.dart`
- [Payment Success](https://github.com/madhukanth1906/digital_payments/blob/main/lib/features/payment/presentation/pages/success_screen.dart): `lib/features/payment/presentation/pages/success_screen.dart`

### Behavioral Security

- [Biometric Service](https://github.com/madhukanth1906/digital_payments/blob/main/lib/core/services/behavioral_biometrics_service.dart): `lib/core/services/behavioral_biometrics_service.dart`
- [Security Center](https://github.com/madhukanth1906/digital_payments/blob/main/lib/features/security/presentation/pages/security_center_screen.dart): `lib/features/security/presentation/pages/security_center_screen.dart`
- [Fraud Alert](https://github.com/madhukanth1906/digital_payments/blob/main/lib/features/security/presentation/pages/fraud_alert_screen.dart): `lib/features/security/presentation/pages/fraud_alert_screen.dart`
- [Good Rating](https://github.com/madhukanth1906/digital_payments/blob/main/lib/features/security/presentation/pages/good_rating_screen.dart): `lib/features/security/presentation/pages/good_rating_screen.dart`

### Community And Services

- [Community Pool](https://github.com/madhukanth1906/digital_payments/blob/main/lib/features/community/presentation/pages/community_pool_screen.dart): `lib/features/community/presentation/pages/community_pool_screen.dart`
- [API Service](https://github.com/madhukanth1906/digital_payments/blob/main/lib/core/services/api_service.dart): `lib/core/services/api_service.dart`
- [Storage Service](https://github.com/madhukanth1906/digital_payments/blob/main/lib/core/services/storage_service.dart): `lib/core/services/storage_service.dart`
- [Notifications](https://github.com/madhukanth1906/digital_payments/blob/main/lib/core/services/notification_service.dart): `lib/core/services/notification_service.dart`

### Other components

- **User**

## Connections

- User → App Shell: opens
- App Shell → Route Map: uses routes (evidence: `README.md`)
- Route Map → Welcome: routes to
- Route Map → Pattern Setup: routes to
- Route Map → Security Setup: routes to
- Route Map → Sign Up: routes to
- Route Map → Log In: routes to
- Route Map → Dashboard: routes to
- Route Map → History: routes to
- Route Map → Profile: routes to
- Route Map → Amount Entry: routes to
- Route Map → QR Scan: routes to
- Route Map → Confirmation: routes to
- Route Map → Processing: routes to
- Route Map → Payment Success: routes to
- Route Map → Security Center: routes to
- Route Map → Fraud Alert: routes to
- Route Map → Good Rating: routes to
- Route Map → Community Pool: routes to
- Amount Entry → Confirmation: continues to (evidence: `README.md`)
- Confirmation → Processing: continues to (evidence: `README.md`)
- Processing → Payment Success: continues to (evidence: `README.md`)
- Pattern Setup → Biometric Service: configures
- Security Center → Biometric Service: uses patterns
- Fraud Alert → Notifications: alerts via
