# jakariahosen10/assignment architecture

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

- Interactive diagram: https://gitdiagram.com/jakariahosen10/assignment
- Repository: https://github.com/jakariahosen10/assignment

## Overview

1. This is a Flutter cross-platform repository with a standard Flutter bootstrap and generated platform shells for Android, iOS, web, macOS, Linux, and Windows. The architectural center is the Dart app under `lib/`, with the native folders acting mostly as launch/runtime wrappers.

2. The app entry point is `lib/main.dart`. From the tree, this repository appears to be a collection of multiple assignment/demo modules rather than a single cohesive product. The main architectural decision is likely routing or module selection from the top-level entry into one of several feature demos.

3. The largest feature area is `lib/BMIcalculator/`, which is structured like a small self-contained app:  
   - `Core/ColorTheme.dart` for shared styling/theme values  
   - `Routes/route.dart` for navigation  
   - `Screen/introScreen.dart` and `Screen/homeScreen.dart` for UI flows  
   - `Widget/` components for reusable UI pieces such as input cards, result cards, and BMI tables  
   This suggests a screen + reusable-widget architecture with simple internal routing.

4. There is a separate `lib/TodoApp/` module that looks like an in-memory or UI-only todo workflow. It has multiple screens/views such as `Home.dart`, `Inputpage.dart`, `createScreen.dart`, `todoScreen.dart`, and `doneScreen.dart`, plus a `Widget/Allwidget.dart` file for shared UI elements. This module likely represents a segmented todo UI with separate lists/states for created and completed items.

5. A second todo implementation exists under `lib/ToDo_LocalData_Base/`, which is architecturally distinct because it includes persistence:  
   - `DataBase/task_db.dart` for local storage access  
   - `Model/TaskModel.dart` for the data entity  
   - `UI/homeScreen.dart` and `UI/Routes.dart` for navigation/UI  
   - `Widget/dilogBox.dart` and `Widget/deleteDilogBox.dart` for confirmation/input dialogs  
   - `core/AppColor.dart` for theme constants  
   This module is likely a CRUD-style todo app backed by a local database rather than transient state.

6. Several smaller self-contained apps/demos are present, each in its own folder and likely independently navigable or selectable:  
   - `CounterApp/` with `Home.dart`, `Page1.dart`, `About.dart`, `Details.dart`  
   - `PersonalProfile _Card/` with `MainScreen.dart`, `Routes.dart`, and reusable card widgets  
   - `RegisterPage/` with a form screen and custom input/button widgets  
   - `StudentProfileCard/` with a profile screen, loading state, dialog/snackbar helpers, and styled text widgets  
   - `WeickExam/` with a `home.dart` and `routes.dart`  
   This organization indicates the repo is more like a portfolio of Flutter exercises than a single domain application.

7. Reusable UI is factored into per-feature widget folders rather than a global design system. Examples include `BMI_Input_Card.dart`, `ResultCard.dart`, `CustomCard.dart`, `CustomButton.dart`, `InputField.dart`, `InfoText.dart`, and `TextDesign.dart`. The boundary is feature-local reuse, not app-wide shared components.

8. Navigation is handled in a lightweight, module-specific way. Multiple features have their own `Routes.dart` or `route.dart`, implying each mini-app manages its own route map rather than sharing one centralized navigation layer. That matters for an architecture diagram: the repo likely has several isolated navigation graphs under the same Flutter app shell.

9. The data model layer is only explicit in the database-backed todo module. `TaskModel.dart` and `task_db.dart` form the clearest separation between UI and persistence. No remote API, auth service, or backend integration is visible in the tree, so the architecture appears to be entirely local/client-side.

10. Native platform code is mostly generated Flutter boilerplate. The Android, iOS, macOS, Linux, Windows, and web directories contain the usual runner, manifest, project, and launcher assets. The only notable native code surface is the standard app entry glue such as `MainActivity.kt` on Android and `AppDelegate.swift` on Apple platforms.

11. Assets are present as a top-level `assets/` directory, but no asset contents are visible from the tree. That suggests the app may use bundled images/fonts/icons, but the architectural role is secondary to the Dart feature modules.

12. For an architecture diagram, the clearest representation is: one Flutter application shell at the root, multiple feature islands under `lib/` with their own screens/widgets/routes, and one explicit local-storage subsystem for the database-backed todo app. There is no evidence of server-side components or external services in this repository snapshot.

Main entry points: [`lib/main.dart`](https://github.com/jakariahosen10/assignment/blob/main/lib/main.dart) (main.dart), [`lib/ToDo_LocalData_Base/UI/homeScreen.dart`](https://github.com/jakariahosen10/assignment/blob/main/lib/ToDo_LocalData_Base/UI/homeScreen.dart) (DB todo UI), [`lib/BMIcalculator/Screen/homeScreen.dart`](https://github.com/jakariahosen10/assignment/blob/main/lib/BMIcalculator/Screen/homeScreen.dart) (BMI screens), [`lib/BMIcalculator/Routes/route.dart`](https://github.com/jakariahosen10/assignment/blob/main/lib/BMIcalculator/Routes/route.dart) (BMI routes)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_flutter_shell["Flutter shell"]
  node_lib_main["main.dart<br/>Dart entry<br/>[main.dart]"]
  node_native_android["Android runner<br/>Native shell<br/>[MainActivity.kt]"]
  node_native_ios["iOS runner<br/>Native shell<br/>[AppDelegate.swift]"]
  node_native_macos["macOS runner<br/>Native shell<br/>[AppDelegate.swift]"]
  node_native_linux["Linux runner<br/>Native shell<br/>[main.cc]"]
  node_native_windows["Windows runner<br/>Native shell<br/>[main.cpp]"]
end

subgraph group_feature_demos["Feature demos"]
  node_lib_bmi_route["BMI routes<br/>Navigation<br/>[route.dart]"]
  node_lib_bmi_screens["BMI screens<br/>UI flow<br/>[homeScreen.dart]"]
  node_lib_bmi_widgets["BMI widgets<br/>UI components"]
  node_lib_bmi_theme["BMI theme<br/>Styling core<br/>[ColorTheme.dart]"]
  node_lib_todo_ui["Todo screens<br/>UI flow<br/>[Home.dart]"]
  node_lib_todo_widgets["Todo widgets<br/>Shared UI<br/>[Allwidget.dart]"]
  node_lib_profile_main["Profile card<br/>Profile UI<br/>[MainScreen.dart]"]
  node_lib_profile_routes["Profile routes<br/>Navigation<br/>[Routes.dart]"]
  node_lib_register_form["Register form<br/>Form UI<br/>[RegisterPage.dart]"]
  node_lib_register_widgets["Form widgets<br/>Input components<br/>[InputField.dart]"]
  node_lib_student_profile["Student profile<br/>Profile UI<br/>[Profile.dart]"]
  node_lib_student_feedback["Dialogs<br/>UX helpers"]
  node_lib_weick_home["Weick exam<br/>Demo app<br/>[home.dart]"]
  node_lib_weick_routes["Weick routes<br/>Navigation<br/>[routes.dart]"]
end

subgraph group_local_todo["Local todo"]
  node_lib_todo_db_home["DB todo UI<br/>CRUD UI<br/>[homeScreen.dart]"]
  node_lib_todo_db_model["Task model<br/>Data model<br/>[TaskModel.dart]"]
  node_lib_todo_db_store[("Task DB<br/>Local storage<br/>[task_db.dart]")]
  node_lib_todo_db_widgets["DB dialogs<br/>UI helpers<br/>[dilogBox.dart]"]
end

node_lib_main -->|"launches"| node_lib_bmi_route
node_lib_main -->|"launches"| node_lib_todo_ui
node_lib_main -->|"launches"| node_lib_todo_db_home
node_lib_main -->|"launches"| node_lib_profile_main
node_lib_main -->|"launches"| node_lib_register_form
node_lib_main -->|"launches"| node_lib_student_profile
node_lib_main -->|"launches"| node_lib_weick_home
node_lib_bmi_route -->|"navigates"| node_lib_bmi_screens
node_lib_bmi_screens -->|"uses"| node_lib_bmi_widgets
node_lib_bmi_screens -->|"styles with"| node_lib_bmi_theme
node_lib_todo_ui -->|"uses"| node_lib_todo_widgets
node_lib_profile_main -->|"navigates"| node_lib_profile_routes
node_lib_register_form -->|"uses"| node_lib_register_widgets
node_lib_student_profile -->|"uses"| node_lib_student_feedback
node_lib_weick_home -->|"navigates"| node_lib_weick_routes
node_lib_todo_db_home -->|"reads/writes"| node_lib_todo_db_model
node_lib_todo_db_home -->|"persists to"| node_lib_todo_db_store
node_lib_todo_db_home -->|"uses"| node_lib_todo_db_widgets
node_lib_todo_db_store -->|"stores"| node_lib_todo_db_model
node_lib_main -->|"boots"| node_native_android
node_lib_main -->|"boots"| node_native_ios
node_lib_main -->|"boots"| node_native_macos
node_lib_main -->|"boots"| node_native_linux
node_lib_main -->|"boots"| node_native_windows

click node_lib_main "https://github.com/jakariahosen10/assignment/blob/main/lib/main.dart"
click node_lib_bmi_route "https://github.com/jakariahosen10/assignment/blob/main/lib/BMIcalculator/Routes/route.dart"
click node_lib_bmi_screens "https://github.com/jakariahosen10/assignment/blob/main/lib/BMIcalculator/Screen/homeScreen.dart"
click node_lib_bmi_widgets "https://github.com/jakariahosen10/assignment/blob/main/lib/BMIcalculator/Widget/BMI_Input_Card.dart"
click node_lib_bmi_theme "https://github.com/jakariahosen10/assignment/blob/main/lib/BMIcalculator/Core/ColorTheme.dart"
click node_lib_todo_ui "https://github.com/jakariahosen10/assignment/blob/main/lib/TodoApp/Home.dart"
click node_lib_todo_widgets "https://github.com/jakariahosen10/assignment/blob/main/lib/TodoApp/Widget/Allwidget.dart"
click node_lib_profile_main "https://github.com/jakariahosen10/assignment/blob/main/lib/PersonalProfile _Card/MainScreen.dart"
click node_lib_profile_routes "https://github.com/jakariahosen10/assignment/blob/main/lib/PersonalProfile _Card/Routes.dart"
click node_lib_register_form "https://github.com/jakariahosen10/assignment/blob/main/lib/RegisterPage/RegisterPage.dart"
click node_lib_register_widgets "https://github.com/jakariahosen10/assignment/blob/main/lib/RegisterPage/Widget/InputField.dart"
click node_lib_student_profile "https://github.com/jakariahosen10/assignment/blob/main/lib/StudentProfileCard/Profile.dart"
click node_lib_student_feedback "https://github.com/jakariahosen10/assignment/blob/main/lib/StudentProfileCard/DialogueBox/showMyCustomDialog.dart"
click node_lib_weick_home "https://github.com/jakariahosen10/assignment/blob/main/lib/WeickExam/home.dart"
click node_lib_weick_routes "https://github.com/jakariahosen10/assignment/blob/main/lib/WeickExam/routes.dart"
click node_lib_todo_db_home "https://github.com/jakariahosen10/assignment/blob/main/lib/ToDo_LocalData_Base/UI/homeScreen.dart"
click node_lib_todo_db_model "https://github.com/jakariahosen10/assignment/blob/main/lib/ToDo_LocalData_Base/Model/TaskModel.dart"
click node_lib_todo_db_store "https://github.com/jakariahosen10/assignment/blob/main/lib/ToDo_LocalData_Base/DataBase/task_db.dart"
click node_lib_todo_db_widgets "https://github.com/jakariahosen10/assignment/blob/main/lib/ToDo_LocalData_Base/Widget/dilogBox.dart"
click node_native_android "https://github.com/jakariahosen10/assignment/blob/main/android/app/src/main/kotlin/com/example/assignment/MainActivity.kt"
click node_native_ios "https://github.com/jakariahosen10/assignment/blob/main/ios/Runner/AppDelegate.swift"
click node_native_macos "https://github.com/jakariahosen10/assignment/blob/main/macos/Runner/AppDelegate.swift"
click node_native_linux "https://github.com/jakariahosen10/assignment/blob/main/linux/runner/main.cc"
click node_native_windows "https://github.com/jakariahosen10/assignment/blob/main/windows/runner/main.cpp"

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_lib_main,node_native_android,node_native_ios,node_native_macos,node_native_linux,node_native_windows toneBlue
class node_lib_bmi_route,node_lib_bmi_screens,node_lib_bmi_widgets,node_lib_bmi_theme,node_lib_todo_ui,node_lib_todo_widgets,node_lib_profile_main,node_lib_profile_routes,node_lib_register_form,node_lib_register_widgets,node_lib_student_profile,node_lib_student_feedback,node_lib_weick_home,node_lib_weick_routes toneAmber
class node_lib_todo_db_home,node_lib_todo_db_model,node_lib_todo_db_store,node_lib_todo_db_widgets toneMint
```

## Components

### Flutter shell

Generated platform runners and bootstrap wrappers

- [main.dart](https://github.com/jakariahosen10/assignment/blob/main/lib/main.dart): Dart entry · App bootstrap and top-level module selection · `lib/main.dart`
- [Android runner](https://github.com/jakariahosen10/assignment/blob/main/android/app/src/main/kotlin/com/example/assignment/MainActivity.kt): Native shell · Android launch and activity wrapper · `android/app/src/main/kotlin/com/example/assignment/MainActivity.kt`
- [iOS runner](https://github.com/jakariahosen10/assignment/blob/main/ios/Runner/AppDelegate.swift): Native shell · iOS app delegate and storyboard shell · `ios/Runner/AppDelegate.swift`
- [macOS runner](https://github.com/jakariahosen10/assignment/blob/main/macos/Runner/AppDelegate.swift): Native shell · macOS app delegate and window shell · `macos/Runner/AppDelegate.swift`
- [Linux runner](https://github.com/jakariahosen10/assignment/blob/main/linux/runner/main.cc): Native shell · Linux desktop bootstrap and application shell · `linux/runner/main.cc`
- [Windows runner](https://github.com/jakariahosen10/assignment/blob/main/windows/runner/main.cpp): Native shell · Windows desktop bootstrap and window shell · `windows/runner/main.cpp`

### Feature demos

Standalone Dart mini-apps under lib/

- [BMI routes](https://github.com/jakariahosen10/assignment/blob/main/lib/BMIcalculator/Routes/route.dart): Navigation · Route map for the BMI calculator module · `lib/BMIcalculator/Routes/route.dart`
- [BMI screens](https://github.com/jakariahosen10/assignment/blob/main/lib/BMIcalculator/Screen/homeScreen.dart): UI flow · Intro and home screens for BMI calculator · `lib/BMIcalculator/Screen/homeScreen.dart`
- [BMI widgets](https://github.com/jakariahosen10/assignment/blob/main/lib/BMIcalculator/Widget/BMI_Input_Card.dart): UI components · Reusable BMI cards, tables, and result UI · `lib/BMIcalculator/Widget/BMI_Input_Card.dart`
- [BMI theme](https://github.com/jakariahosen10/assignment/blob/main/lib/BMIcalculator/Core/ColorTheme.dart): Styling core · Shared colors and theme constants · `lib/BMIcalculator/Core/ColorTheme.dart`
- [Todo screens](https://github.com/jakariahosen10/assignment/blob/main/lib/TodoApp/Home.dart): UI flow · In-memory todo screens and list states · `lib/TodoApp/Home.dart`
- [Todo widgets](https://github.com/jakariahosen10/assignment/blob/main/lib/TodoApp/Widget/Allwidget.dart): Shared UI · Reusable widgets for the todo flow · `lib/TodoApp/Widget/Allwidget.dart`
- [Profile card](https://github.com/jakariahosen10/assignment/blob/HEAD/lib/PersonalProfile%20_Card/MainScreen.dart): Profile UI · Personal profile card main screen · `lib/PersonalProfile _Card/MainScreen.dart`
- [Profile routes](https://github.com/jakariahosen10/assignment/blob/HEAD/lib/PersonalProfile%20_Card/Routes.dart): Navigation · Route map for the profile card module · `lib/PersonalProfile _Card/Routes.dart`
- [Register form](https://github.com/jakariahosen10/assignment/blob/main/lib/RegisterPage/RegisterPage.dart): Form UI · Registration page screen · `lib/RegisterPage/RegisterPage.dart`
- [Form widgets](https://github.com/jakariahosen10/assignment/blob/main/lib/RegisterPage/Widget/InputField.dart): Input components · Custom inputs, buttons, and headers for registration · `lib/RegisterPage/Widget/InputField.dart`
- [Student profile](https://github.com/jakariahosen10/assignment/blob/main/lib/StudentProfileCard/Profile.dart): Profile UI · Student profile screen and loading state · `lib/StudentProfileCard/Profile.dart`
- [Dialogs](https://github.com/jakariahosen10/assignment/blob/main/lib/StudentProfileCard/DialogueBox/showMyCustomDialog.dart): UX helpers · Custom dialog and snackbar helpers · `lib/StudentProfileCard/DialogueBox/showMyCustomDialog.dart`
- [Weick exam](https://github.com/jakariahosen10/assignment/blob/main/lib/WeickExam/home.dart): Demo app · Standalone exam/demo home screen · `lib/WeickExam/home.dart`
- [Weick routes](https://github.com/jakariahosen10/assignment/blob/main/lib/WeickExam/routes.dart): Navigation · Route map for the exam/demo module · `lib/WeickExam/routes.dart`

### Local todo

Todo app with local persistence

- [DB todo UI](https://github.com/jakariahosen10/assignment/blob/main/lib/ToDo_LocalData_Base/UI/homeScreen.dart): CRUD UI · Database-backed todo home screen and routes · `lib/ToDo_LocalData_Base/UI/homeScreen.dart`
- [Task model](https://github.com/jakariahosen10/assignment/blob/main/lib/ToDo_LocalData_Base/Model/TaskModel.dart): Data model · Persisted todo entity definition · `lib/ToDo_LocalData_Base/Model/TaskModel.dart`
- [Task DB](https://github.com/jakariahosen10/assignment/blob/main/lib/ToDo_LocalData_Base/DataBase/task_db.dart): Local storage · Local database access layer · `lib/ToDo_LocalData_Base/DataBase/task_db.dart`
- [DB dialogs](https://github.com/jakariahosen10/assignment/blob/main/lib/ToDo_LocalData_Base/Widget/dilogBox.dart): UI helpers · Input and delete confirmation dialogs · `lib/ToDo_LocalData_Base/Widget/dilogBox.dart`

## Connections

- main.dart → BMI routes: launches · Entry point can open the BMI module
- main.dart → Todo screens: launches · Entry point can open the in-memory todo module
- main.dart → DB todo UI: launches · Entry point can open the persistent todo module
- main.dart → Profile card: launches · Entry point can open the profile card module
- main.dart → Register form: launches · Entry point can open the registration form
- main.dart → Student profile: launches · Entry point can open the student profile module
- main.dart → Weick exam: launches · Entry point can open the Weick demo
- BMI routes → BMI screens: navigates · BMI routes connect intro and home screens
- BMI screens → BMI widgets: uses · Screens compose reusable BMI widgets
- BMI screens → BMI theme: styles with · Screens share common theme values
- Todo screens → Todo widgets: uses · Todo screens share local UI components
- Profile card → Profile routes: navigates · Profile module uses its own route map
- Register form → Form widgets: uses · Form screen is built from custom inputs and buttons
- Student profile → Dialogs: uses · Profile UI triggers dialogs and snackbars
- Weick exam → Weick routes: navigates · Weick demo uses module-local routing
- DB todo UI → Task model: reads/writes · CRUD UI manipulates task entities
- DB todo UI → Task DB: persists to · UI talks to the local database layer
- DB todo UI → DB dialogs: uses · Home screen uses input and delete dialogs
- Task DB → Task model: stores · Database layer serializes task models
- main.dart → Android runner: boots · Flutter app is hosted by Android shell
- main.dart → iOS runner: boots · Flutter app is hosted by iOS shell
- main.dart → macOS runner: boots · Flutter app is hosted by macOS shell
- main.dart → Linux runner: boots · Flutter app is hosted by Linux shell
- main.dart → Windows runner: boots · Flutter app is hosted by Windows shell
