# fu-dever-org/fu-dever-dashboard-mobile architecture

> Architecture diagram of the GitHub repository fu-dever-org/fu-dever-dashboard-mobile, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-01-30). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/fu-dever-org/fu-dever-dashboard-mobile
- Repository: https://github.com/fu-dever-org/fu-dever-dashboard-mobile

## Overview

##### Main Components Identification

a) Frontend Layer (Presentation)
- Screens into logical sections:
- Authentication (login, signup, forgot password)
- Home (activity, leaderboard, splash)
- Profile management
- Members view
- Filters

b) State Management & Control Layer
- Controllers and Providers:
- AuthController
- ProfileController
- TokenController
- ImageController
- FilterController

c) API Layer
- API services:
- Authentication API
- Profile API
- Department API
- Major API
- API
- Users API
- Cloudinary API (for image handling)
- LeetCode API

d) Data Models Layer
- Core data models:
- User model
- Member model
- Login Request model

**┌─────────────────────────────────────────┐**
- UI Layer                   │
- (Screens, Widgets, Layouts)            │
- ┤
- State Management Layer          │
- (Controllers & Providers)            │
- ┤
- API Layer                  │
- (API Services & External APIs)       │
- ┤
- Data Models                  │
- ┘

##### Component Relationships

- Data flow between screens and controllers
- API calls from controllers to API services
- State updates from providers to UI
- Model usage across layers

##### Additional Elements

Include:
- Version information
- Main dependencies (Flutter, third-party packages)
- Environment configurations

Remember to highlight the mobile-first nature of the application and how it handles different screen sizes and platforms, as this is a Flutter application that can run on multiple platforms (iOS, Android, Web).

## Diagram (Mermaid)

```mermaid
flowchart TB
    %% Styles and classes
    classDef ui fill:#3498db,stroke:#2980b9,color:white
    classDef controller fill:#2ecc71,stroke:#27ae60,color:white
    classDef api fill:#e67e22,stroke:#d35400,color:white
    classDef model fill:#9b59b6,stroke:#8e44ad,color:white
    classDef external fill:#95a5a6,stroke:#7f8c8d,color:white

    %% UI Layer
    subgraph UI
        Layouts["Layouts"]:::ui
        Routes["Routes"]:::ui
        Themes["Themes"]:::ui
        Widgets["Widgets"]:::ui
        
        subgraph Screens
            Auth["Authentication Screens"]:::ui
            Home["Home Screens"]:::ui
            Profile["Profile Screens"]:::ui
            Members["Members Screens"]:::ui
            Filters["Filters Screen"]:::ui
        end
    end

    %% Controllers Layer
    subgraph Controllers
        AuthCtrl["Auth Controller"]:::controller
        ProfileCtrl["Profile Controller"]:::controller
        TokenCtrl["Token Controller"]:::controller
        ImageCtrl["Image Controller"]:::controller
        FilterCtrl["Filter Controller"]:::controller
    end

    %% API Layer
    subgraph APIs
        AuthAPI["Authentication API"]:::api
        ProfileAPI["Profile API"]:::api
        DeptAPI["Department API"]:::api
        MajorAPI["Major API"]:::api
        PosAPI["Position API"]:::api
        UsersAPI["Users API"]:::api
        
        subgraph ExternalAPIs
            CloudAPI["Cloudinary API"]:::external
            LeetAPI["LeetCode API"]:::external
        end
    end

    %% Models Layer
    subgraph Models
        UserModel["User Model"]:::model
        MemberModel["Member Model"]:::model
        LoginModel["Login Request Model"]:::model
    end

    %% Relationships
    Auth --> AuthCtrl
    Profile --> ProfileCtrl
    Members --> ProfileCtrl
    Filters --> FilterCtrl
    
    AuthCtrl --> AuthAPI
    ProfileCtrl --> ProfileAPI
    ProfileCtrl --> UsersAPI
    ImageCtrl --> CloudAPI
    
    AuthAPI --> UserModel
    ProfileAPI --> MemberModel
    AuthCtrl --> LoginModel

    %% Click events
    click Auth "https://github.com/FU-DEVER-ORG/FU-DEVER-Dashboard-Mobile/tree/main/lib/modules/screens/auth/"
    click Home "https://github.com/FU-DEVER-ORG/FU-DEVER-Dashboard-Mobile/tree/main/lib/modules/screens/home/"
    click Profile "https://github.com/FU-DEVER-ORG/FU-DEVER-Dashboard-Mobile/tree/main/lib/modules/screens/profile/"
    click Members "https://github.com/FU-DEVER-ORG/FU-DEVER-Dashboard-Mobile/tree/main/lib/modules/screens/members/"
    click Filters "https://github.com/FU-DEVER-ORG/FU-DEVER-Dashboard-Mobile/tree/main/lib/modules/screens/filters/"
    
    click AuthCtrl "https://github.com/FU-DEVER-ORG/FU-DEVER-Dashboard-Mobile/blob/main/lib/modules/screens/auth/auth_controller.dart"
    click ProfileCtrl "https://github.com/FU-DEVER-ORG/FU-DEVER-Dashboard-Mobile/blob/main/lib/controller/profile_controller.dart"
    click TokenCtrl "https://github.com/FU-DEVER-ORG/FU-DEVER-Dashboard-Mobile/blob/main/lib/controller/token_controller.dart"
    click ImageCtrl "https://github.com/FU-DEVER-ORG/FU-DEVER-Dashboard-Mobile/blob/main/lib/provider/image_controller.dart"
    click FilterCtrl "https://github.com/FU-DEVER-ORG/FU-DEVER-Dashboard-Mobile/blob/main/lib/controller/filter_controller.dart"
    
    click AuthAPI "https://github.com/FU-DEVER-ORG/FU-DEVER-Dashboard-Mobile/blob/main/lib/api/auth_api.dart"
    click ProfileAPI "https://github.com/FU-DEVER-ORG/FU-DEVER-Dashboard-Mobile/blob/main/lib/api/profile_api.dart"
    click DeptAPI "https://github.com/FU-DEVER-ORG/FU-DEVER-Dashboard-Mobile/blob/main/lib/api/department_api.dart"
    click MajorAPI "https://github.com/FU-DEVER-ORG/FU-DEVER-Dashboard-Mobile/blob/main/lib/api/major_api.dart"
    click PosAPI "https://github.com/FU-DEVER-ORG/FU-DEVER-Dashboard-Mobile/blob/main/lib/api/position_api.dart"
    click UsersAPI "https://github.com/FU-DEVER-ORG/FU-DEVER-Dashboard-Mobile/blob/main/lib/api/users_api.dart"
    click CloudAPI "https://github.com/FU-DEVER-ORG/FU-DEVER-Dashboard-Mobile/blob/main/lib/api/cloudinary_api.dart"
    click LeetAPI "https://github.com/FU-DEVER-ORG/FU-DEVER-Dashboard-Mobile/blob/main/lib/api/leetcode_api.dart"
    
    click UserModel "https://github.com/FU-DEVER-ORG/FU-DEVER-Dashboard-Mobile/blob/main/lib/models/user.dart"
    click MemberModel "https://github.com/FU-DEVER-ORG/FU-DEVER-Dashboard-Mobile/blob/main/lib/models/member.dart"
    click LoginModel "https://github.com/FU-DEVER-ORG/FU-DEVER-Dashboard-Mobile/blob/main/lib/models/login_request/login_request.dart"
    
    click Layouts "https://github.com/FU-DEVER-ORG/FU-DEVER-Dashboard-Mobile/tree/main/lib/layouts/"
    click Routes "https://github.com/FU-DEVER-ORG/FU-DEVER-Dashboard-Mobile/blob/main/lib/routes/routes.dart"
    click Themes "https://github.com/FU-DEVER-ORG/FU-DEVER-Dashboard-Mobile/tree/main/lib/modules/themes/"
    click Widgets "https://github.com/FU-DEVER-ORG/FU-DEVER-Dashboard-Mobile/tree/main/lib/modules/widgets/"
```
