# arnavkode/e-summit architecture

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

- Interactive diagram: https://gitdiagram.com/arnavkode/e-summit
- Repository: https://github.com/arnavkode/e-summit

## Overview

#### 1. Purpose and Platform
E-SUMMIT’25 is an unreleased cross-platform Flutter client for TIET/TVC’s entrepreneurship festival. It provides event discovery/content screens and Supabase-backed user authentication, with planned ticket verification and media broadcasting.

Flutter application code is rooted at `lib/`; platform hosts support Android, iOS, web, Linux, macOS, and Windows.

#### 2. Application Entry and Startup
`lib/main.dart` is the Flutter entry point and application composition boundary. Startup UI and first-run progression are represented by `lib/pages/splash_screen.dart` and `lib/pages/welcome_page.dart`.

Native launchers initialize Flutter rather than implement business behavior:
- `android/app/src/main/kotlin/com/example/e_summit25/MainActivity.kt`
- `ios/Runner/AppDelegate.swift`
- `web/index.html`

#### 3. Authentication Boundary
Authentication is centralized under services:
- `lib/services/Auth_services.dart`
- `lib/services/Auth_gate.dart`

The auth gate likely selects authenticated versus unauthenticated application flow. UI flows cover login, signup, OTP verification/re-authentication, and password recovery:
- `lib/pages/login_page.dart`
- `lib/pages/signup_page.dart`
- `lib/pages/OTP_page.dart`
- `lib/off pages/Reset_password.dart`

Supabase is the material backend dependency for user management and data handling. SMTP servers deliver OTP-based signup and verification messages; Flutter clients should treat both as external service boundaries.

#### 4. Primary User and Navigation Flow
The expected control path is startup → welcome/auth gate → login/signup or OTP/password recovery → dashboard/account/event content. The main signed-in experience is organized around:
- `lib/pages/dashboard.dart`
- `lib/pages/account_page.dart`
- `lib/pages/map.dart`

`lib/pages/New_password.dart` and `lib/off pages/OTP_reauth.dart` extend the recovery/session-verification path. No separate backend service or server code is present; the Flutter client communicates directly with Supabase.

#### 5. Festival Content Modules
Event experiences are implemented as independently maintained screens, making the pages directory the primary product-content boundary:
- `lib/pages/Bizconclave.dart`
- `lib/pages/Networkingcarnival.dart`
- `lib/pages/opening_ceremony.dart`

Additional summit programming and informational sections include `lib/pages/IF.dart`, `lib/pages/ytconnect.dart`, `lib/pages/unwind.dart`, and `lib/pages/About_us.dart`. `lib/utils/Datas.dart` appears to be the local content/data source shared by presentation modules, while `lib/utils/events_template.dart` provides a reusable event-display structure.

#### 6. Presentation System and Assets
Reusable form, button, and list components separate common presentation patterns from page-level flows:
- `lib/utils/Bigbutton.dart`
- `lib/utils/Entryfield.dart`
- `lib/utils/horizontalList.dart`

Bundled visual typography is stored in `lib/assets/fonts/inter/`; image assets belong under `lib/assets/images`. This makes the client largely self-contained for branding and static event presentation, while identity/data operations remain externalized to Supabase.

#### 7. Build and Runtime Infrastructure
Flutter/Dart is the material runtime, declared by `pubspec.yaml` and launched through `lib/main.dart`. Native wrappers package the same Flutter application for each target:
- Android Gradle project: `android/app/build.gradle`
- iOS Runner project: `ios/Runner.xcodeproj/project.pbxproj`
- Desktop runners: `linux/main.cc`, `windows/runner/main.cpp`, `macos/Runner/MainFlutterWindow.swift`

The repository contains no custom API, database migration, Supabase configuration, or ticketing/media implementation. Those future capabilities will require explicit service integration beyond the current client-side architecture.

Main entry points: [`lib/pages/dashboard.dart`](https://github.com/arnavkode/e-summit/blob/main/lib/pages/dashboard.dart) (Dashboard), [`lib/main.dart`](https://github.com/arnavkode/e-summit/blob/main/lib/main.dart) (App entry), [`lib/services/Auth_gate.dart`](https://github.com/arnavkode/e-summit/blob/main/lib/services/Auth_gate.dart) (Auth gate), [`lib/pages/login_page.dart`](https://github.com/arnavkode/e-summit/blob/main/lib/pages/login_page.dart) (Login & signup)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Flutter App"]
  node_main["App entry<br/>Flutter composition<br/>[main.dart]"]
  node_startup["Startup flow<br/>onboarding UI<br/>[splash_screen.dart]"]
  node_welcome["Welcome<br/>onboarding UI<br/>[welcome_page.dart]"]
  node_dashboard["Dashboard<br/>signed-in UI<br/>[dashboard.dart]"]
  node_account["Account<br/>profile UI<br/>[account_page.dart]"]
  node_map["Map<br/>[map.dart]"]
  node_shared_widgets["Shared UI widgets<br/>presentation components<br/>[Bigbutton.dart]"]
  node_assets["Brand assets<br/>fonts and images"]
end

subgraph group_auth["Authentication"]
  node_auth_gate{{"Auth gate<br/>session router<br/>[Auth_gate.dart]"}}
  node_auth_service["Auth service<br/>Supabase client service<br/>[Auth_services.dart]"]
  node_auth_screens["Login &amp; signup<br/>auth UI<br/>[login_page.dart]"]
  node_verification["OTP &amp; recovery<br/>verification UI<br/>[OTP_page.dart]"]
  node_supabase[("Supabase<br/>external backend")]
  node_smtp["SMTP servers<br/>external messaging"]
end

subgraph group_content["Festival Content"]
  node_event_screens["Event screens<br/>festival content UI<br/>[Bizconclave.dart]"]
  node_programming_screens["Programming &amp; info<br/>festival content UI<br/>[IF.dart]"]
  node_content_data["Local content data<br/>content source<br/>[Datas.dart]"]
  node_event_template["Event template<br/>presentation component"]
end

subgraph group_runtime["Runtime &amp; Hosts"]
  node_flutter_runtime{{"Flutter/Dart runtime<br/>application runtime<br/>[pubspec.yaml]"}}
  node_native_hosts["Native platform hosts<br/>Android, iOS, web, desktop<br/>[build.gradle]"]
end

node_native_hosts -->|"hosts"| node_flutter_runtime
node_flutter_runtime -->|"runs"| node_main
node_main -->|"starts with"| node_startup
node_startup -->|"progresses to"| node_welcome
node_welcome -->|"continues to"| node_auth_gate
node_auth_gate -->|"unauthenticated flow"| node_auth_screens
node_auth_gate -->|"authenticated flow"| node_dashboard
node_auth_screens -->|"OTP and recovery"| node_verification
node_auth_screens -->|"uses"| node_auth_service
node_verification -->|"verifies or resets"| node_auth_service
node_auth_service -->|"auth and data"| node_supabase
node_supabase -.->|"OTP delivery"| node_smtp
node_dashboard -->|"navigates to"| node_account
node_dashboard -->|"navigates to"| node_map
node_dashboard -->|"opens"| node_event_screens
node_dashboard -->|"opens"| node_programming_screens
node_event_screens -->|"uses"| node_content_data
node_programming_screens -->|"uses"| node_content_data
node_event_screens -->|"renders with"| node_event_template
node_main -.->|"shared presentation"| node_shared_widgets
node_main -->|"bundles"| node_assets

click node_main "https://github.com/arnavkode/e-summit/blob/main/lib/main.dart"
click node_startup "https://github.com/arnavkode/e-summit/blob/main/lib/pages/splash_screen.dart"
click node_welcome "https://github.com/arnavkode/e-summit/blob/main/lib/pages/welcome_page.dart"
click node_auth_gate "https://github.com/arnavkode/e-summit/blob/main/lib/services/Auth_gate.dart"
click node_auth_service "https://github.com/arnavkode/e-summit/blob/main/lib/services/Auth_services.dart"
click node_auth_screens "https://github.com/arnavkode/e-summit/blob/main/lib/pages/login_page.dart"
click node_verification "https://github.com/arnavkode/e-summit/blob/main/lib/pages/OTP_page.dart"
click node_dashboard "https://github.com/arnavkode/e-summit/blob/main/lib/pages/dashboard.dart"
click node_account "https://github.com/arnavkode/e-summit/blob/main/lib/pages/account_page.dart"
click node_map "https://github.com/arnavkode/e-summit/blob/main/lib/pages/map.dart"
click node_event_screens "https://github.com/arnavkode/e-summit/blob/main/lib/pages/Bizconclave.dart"
click node_programming_screens "https://github.com/arnavkode/e-summit/blob/main/lib/pages/IF.dart"
click node_content_data "https://github.com/arnavkode/e-summit/blob/main/lib/utils/Datas.dart"
click node_event_template "https://github.com/arnavkode/e-summit/blob/main/lib/utils/events_template.dart"
click node_shared_widgets "https://github.com/arnavkode/e-summit/blob/main/lib/utils/Bigbutton.dart"
click node_flutter_runtime "https://github.com/arnavkode/e-summit/blob/main/pubspec.yaml"
click node_native_hosts "https://github.com/arnavkode/e-summit/blob/main/android/app/build.gradle"

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_startup,node_welcome,node_dashboard,node_account,node_map,node_shared_widgets,node_assets toneBlue
class node_auth_gate,node_auth_service,node_auth_screens,node_verification,node_supabase,node_smtp toneAmber
class node_event_screens,node_programming_screens,node_content_data,node_event_template toneMint
class node_flutter_runtime,node_native_hosts toneRose
```

## Components

### Flutter App

- [App entry](https://github.com/arnavkode/e-summit/blob/main/lib/main.dart): Flutter composition · Composes and launches the client. · `lib/main.dart`
- [Startup flow](https://github.com/arnavkode/e-summit/blob/main/lib/pages/splash_screen.dart): onboarding UI · `lib/pages/splash_screen.dart`
- [Welcome](https://github.com/arnavkode/e-summit/blob/main/lib/pages/welcome_page.dart): onboarding UI · `lib/pages/welcome_page.dart`
- [Dashboard](https://github.com/arnavkode/e-summit/blob/main/lib/pages/dashboard.dart): signed-in UI · `lib/pages/dashboard.dart`
- [Account](https://github.com/arnavkode/e-summit/blob/main/lib/pages/account_page.dart): profile UI · `lib/pages/account_page.dart`
- [Map](https://github.com/arnavkode/e-summit/blob/main/lib/pages/map.dart): event map UI · `lib/pages/map.dart`
- [Shared UI widgets](https://github.com/arnavkode/e-summit/blob/main/lib/utils/Bigbutton.dart): presentation components · Buttons, entry fields, and horizontal lists. · `lib/utils/Bigbutton.dart`
- **Brand assets**: fonts and images

### Authentication

- [Auth gate](https://github.com/arnavkode/e-summit/blob/main/lib/services/Auth_gate.dart): session router · Selects authenticated or unauthenticated flow. · `lib/services/Auth_gate.dart`
- [Auth service](https://github.com/arnavkode/e-summit/blob/main/lib/services/Auth_services.dart): Supabase client service · `lib/services/Auth_services.dart`
- [Login & signup](https://github.com/arnavkode/e-summit/blob/main/lib/pages/login_page.dart): auth UI · `lib/pages/login_page.dart`
- [OTP & recovery](https://github.com/arnavkode/e-summit/blob/main/lib/pages/OTP_page.dart): verification UI · Includes OTP, re-authentication, reset, and new-password flows. · `lib/pages/OTP_page.dart`
- **Supabase**: external backend · Direct client dependency for identity and data.
- **SMTP servers**: external messaging · Delivers OTP signup and verification messages.

### Festival Content

- [Event screens](https://github.com/arnavkode/e-summit/blob/main/lib/pages/Bizconclave.dart): festival content UI · Bizconclave, Networking Carnival, and opening ceremony. · `lib/pages/Bizconclave.dart`
- [Programming & info](https://github.com/arnavkode/e-summit/blob/main/lib/pages/IF.dart): festival content UI · IF, YT Connect, Unwind, and About Us. · `lib/pages/IF.dart`
- [Local content data](https://github.com/arnavkode/e-summit/blob/main/lib/utils/Datas.dart): content source · `lib/utils/Datas.dart`
- [Event template](https://github.com/arnavkode/e-summit/blob/main/lib/utils/events_template.dart): presentation component · `lib/utils/events_template.dart`

### Runtime & Hosts

- [Flutter/Dart runtime](https://github.com/arnavkode/e-summit/blob/main/pubspec.yaml): application runtime · `pubspec.yaml`
- [Native platform hosts](https://github.com/arnavkode/e-summit/blob/main/android/app/build.gradle): Android, iOS, web, desktop · Package and launch the same Flutter client. · `android/app/build.gradle`

## Connections

- Native platform hosts → Flutter/Dart runtime: hosts
- Flutter/Dart runtime → App entry: runs
- App entry → Startup flow: starts with
- Startup flow → Welcome: progresses to
- Welcome → Auth gate: continues to
- Auth gate → Login & signup: unauthenticated flow
- Auth gate → Dashboard: authenticated flow
- Login & signup → OTP & recovery: OTP and recovery
- Login & signup → Auth service: uses
- OTP & recovery → Auth service: verifies or resets
- Auth service → Supabase: auth and data
- Supabase → SMTP servers: OTP delivery
- Dashboard → Account: navigates to
- Dashboard → Map: navigates to
- Dashboard → Event screens: opens
- Dashboard → Programming & info: opens
- Event screens → Local content data: uses
- Programming & info → Local content data: uses
- Event screens → Event template: renders with
- App entry → Shared UI widgets: shared presentation
- App entry → Brand assets: bundles
