# onkar-shinde-010/kisan_rakshak architecture

> Architecture diagram of the GitHub repository onkar-shinde-010/kisan_rakshak, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-01). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/onkar-shinde-010/kisan_rakshak
- Repository: https://github.com/onkar-shinde-010/kisan_rakshak

## Overview

Kisan Rakshak is a Flutter mobile/desktop app whose screens indicate farmer-facing crop care, diagnosis, field analysis, community, marketplace, and account features. The likely user journey begins in the app and reaches a selected feature, but the README is empty and no Dart source was excerpted, so feature routing and backend interactions cannot be verified. The graph preserves the visible feature areas and the sampled native Flutter host components; dashed edges with no evidence path mark only the broad, unverified app entry relationship.

Main entry points: [`Kisan_Rakshak/lib/main.dart`](https://github.com/onkar-shinde-010/kisan_rakshak/blob/main/Kisan_Rakshak/lib/main.dart) (App entry), [`Kisan_Rakshak/windows/runner/flutter_window.h`](https://github.com/onkar-shinde-010/kisan_rakshak/blob/main/Kisan_Rakshak/windows/runner/flutter_window.h) (Flutter window), [`Kisan_Rakshak/windows/runner/win32_window.h`](https://github.com/onkar-shinde-010/kisan_rakshak/blob/main/Kisan_Rakshak/windows/runner/win32_window.h) (Win32 window API), [`Kisan_Rakshak/linux/runner/my_application.cc`](https://github.com/onkar-shinde-010/kisan_rakshak/blob/main/Kisan_Rakshak/linux/runner/my_application.cc) (Linux host)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Flutter app"]
  node_entry["App entry<br/>[main.dart]"]
  node_accounts["Accounts"]
  node_profile["Profile"]
  node_api["API service<br/>[api_service.dart]"]
  node_authservice["Auth service<br/>[auth_service.dart]"]
  node_chatservice["Chatbot service"]
  node_cloudinary["Media service"]
end

subgraph group_farm["Farm tools"]
  node_cropcare["Crop care<br/>[CropCare.dart]"]
  node_diagnosis["Crop diagnosis"]
  node_fieldanalysis["Field analysis"]
  node_fieldmap["Field map"]
  node_schedule["Farm schedule"]
end

subgraph group_community["Community and commerce"]
  node_communityposts["Community posts"]
  node_chat["Chat<br/>[chat_screen.dart]"]
  node_marketplace["Marketplace"]
end

subgraph group_hosts["Platform hosts"]
  node_linuxhost["Linux host<br/>[my_application.cc]"]
  node_linuxplugins["Linux plugins"]
  node_macplugins["macOS plugins"]
  node_winmain["Windows entry<br/>[main.cpp]"]
  node_flutterwindow["Flutter window<br/>[flutter_window.h]"]
  node_winwindow["Win32 window<br/>[win32_window.cpp]"]
  node_winwindowheader["Win32 window API<br/>[win32_window.h]"]
  node_winplugins["Windows plugins"]
end

node_farmer(("Farmer"))

node_farmer -.->|"opens app"| node_entry
node_entry -.->|"routes to"| node_accounts
node_entry -.->|"routes to"| node_cropcare
node_entry -.->|"routes to"| node_diagnosis
node_entry -.->|"routes to"| node_fieldanalysis
node_entry -.->|"routes to"| node_fieldmap
node_entry -.->|"routes to"| node_schedule
node_entry -.->|"routes to"| node_communityposts
node_entry -.->|"routes to"| node_chat
node_entry -.->|"routes to"| node_marketplace
node_entry -.->|"routes to"| node_profile
node_winmain -->|"creates"| node_flutterwindow
node_flutterwindow -->|"inherits"| node_winwindowheader
node_winwindow -->|"implements"| node_winwindowheader
node_linuxhost -->|"registers plugins"| node_linuxplugins

click node_entry "https://github.com/onkar-shinde-010/kisan_rakshak/blob/main/Kisan_Rakshak/lib/main.dart"
click node_accounts "https://github.com/onkar-shinde-010/kisan_rakshak/tree/main/Kisan_Rakshak/lib/screens"
click node_profile "https://github.com/onkar-shinde-010/kisan_rakshak/blob/main/Kisan_Rakshak/lib/screens/profile_screen.dart"
click node_cropcare "https://github.com/onkar-shinde-010/kisan_rakshak/blob/main/Kisan_Rakshak/lib/screens/CropCare.dart"
click node_diagnosis "https://github.com/onkar-shinde-010/kisan_rakshak/blob/main/Kisan_Rakshak/lib/screens/diagnose_screen.dart"
click node_fieldanalysis "https://github.com/onkar-shinde-010/kisan_rakshak/blob/main/Kisan_Rakshak/lib/screens/field_analysis_screen.dart"
click node_fieldmap "https://github.com/onkar-shinde-010/kisan_rakshak/blob/main/Kisan_Rakshak/lib/screens/field_map_screen.dart"
click node_schedule "https://github.com/onkar-shinde-010/kisan_rakshak/blob/main/Kisan_Rakshak/lib/screens/schedule_screen.dart"
click node_communityposts "https://github.com/onkar-shinde-010/kisan_rakshak/blob/main/Kisan_Rakshak/lib/screens/community_post_page.dart"
click node_chat "https://github.com/onkar-shinde-010/kisan_rakshak/blob/main/Kisan_Rakshak/lib/screens/chat_screen.dart"
click node_marketplace "https://github.com/onkar-shinde-010/kisan_rakshak/blob/main/Kisan_Rakshak/lib/screens/Marketplace_screen.dart"
click node_api "https://github.com/onkar-shinde-010/kisan_rakshak/blob/main/Kisan_Rakshak/lib/services/api_service.dart"
click node_authservice "https://github.com/onkar-shinde-010/kisan_rakshak/blob/main/Kisan_Rakshak/lib/services/auth_service.dart"
click node_chatservice "https://github.com/onkar-shinde-010/kisan_rakshak/blob/main/Kisan_Rakshak/lib/services/chatbot_services.dart"
click node_cloudinary "https://github.com/onkar-shinde-010/kisan_rakshak/blob/main/Kisan_Rakshak/lib/services/cloudinary_service.dart"
click node_linuxhost "https://github.com/onkar-shinde-010/kisan_rakshak/blob/main/Kisan_Rakshak/linux/runner/my_application.cc"
click node_linuxplugins "https://github.com/onkar-shinde-010/kisan_rakshak/blob/main/Kisan_Rakshak/linux/flutter/generated_plugin_registrant.h"
click node_macplugins "https://github.com/onkar-shinde-010/kisan_rakshak/blob/main/Kisan_Rakshak/macos/Flutter/GeneratedPluginRegistrant.swift"
click node_winmain "https://github.com/onkar-shinde-010/kisan_rakshak/blob/main/Kisan_Rakshak/windows/runner/main.cpp"
click node_flutterwindow "https://github.com/onkar-shinde-010/kisan_rakshak/blob/main/Kisan_Rakshak/windows/runner/flutter_window.h"
click node_winwindow "https://github.com/onkar-shinde-010/kisan_rakshak/blob/main/Kisan_Rakshak/windows/runner/win32_window.cpp"
click node_winwindowheader "https://github.com/onkar-shinde-010/kisan_rakshak/blob/main/Kisan_Rakshak/windows/runner/win32_window.h"
click node_winplugins "https://github.com/onkar-shinde-010/kisan_rakshak/blob/main/Kisan_Rakshak/windows/flutter/generated_plugin_registrant.cc"

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_entry,node_accounts,node_profile,node_api,node_authservice,node_chatservice,node_cloudinary toneBlue
class node_cropcare,node_diagnosis,node_fieldanalysis,node_fieldmap,node_schedule toneAmber
class node_communityposts,node_chat,node_marketplace toneMint
class node_linuxhost,node_linuxplugins,node_macplugins,node_winmain,node_flutterwindow,node_winwindow,node_winwindowheader,node_winplugins toneRose
class node_farmer toneIndigo
```

## Components

### Flutter app

- [App entry](https://github.com/onkar-shinde-010/kisan_rakshak/blob/main/Kisan_Rakshak/lib/main.dart): `Kisan_Rakshak/lib/main.dart`
- [Accounts](https://github.com/onkar-shinde-010/kisan_rakshak/tree/main/Kisan_Rakshak/lib/screens): `Kisan_Rakshak/lib/screens`
- [Profile](https://github.com/onkar-shinde-010/kisan_rakshak/blob/main/Kisan_Rakshak/lib/screens/profile_screen.dart): `Kisan_Rakshak/lib/screens/profile_screen.dart`
- [API service](https://github.com/onkar-shinde-010/kisan_rakshak/blob/main/Kisan_Rakshak/lib/services/api_service.dart): `Kisan_Rakshak/lib/services/api_service.dart`
- [Auth service](https://github.com/onkar-shinde-010/kisan_rakshak/blob/main/Kisan_Rakshak/lib/services/auth_service.dart): `Kisan_Rakshak/lib/services/auth_service.dart`
- [Chatbot service](https://github.com/onkar-shinde-010/kisan_rakshak/blob/main/Kisan_Rakshak/lib/services/chatbot_services.dart): `Kisan_Rakshak/lib/services/chatbot_services.dart`
- [Media service](https://github.com/onkar-shinde-010/kisan_rakshak/blob/main/Kisan_Rakshak/lib/services/cloudinary_service.dart): `Kisan_Rakshak/lib/services/cloudinary_service.dart`

### Farm tools

- [Crop care](https://github.com/onkar-shinde-010/kisan_rakshak/blob/main/Kisan_Rakshak/lib/screens/CropCare.dart): `Kisan_Rakshak/lib/screens/CropCare.dart`
- [Crop diagnosis](https://github.com/onkar-shinde-010/kisan_rakshak/blob/main/Kisan_Rakshak/lib/screens/diagnose_screen.dart): `Kisan_Rakshak/lib/screens/diagnose_screen.dart`
- [Field analysis](https://github.com/onkar-shinde-010/kisan_rakshak/blob/main/Kisan_Rakshak/lib/screens/field_analysis_screen.dart): `Kisan_Rakshak/lib/screens/field_analysis_screen.dart`
- [Field map](https://github.com/onkar-shinde-010/kisan_rakshak/blob/main/Kisan_Rakshak/lib/screens/field_map_screen.dart): `Kisan_Rakshak/lib/screens/field_map_screen.dart`
- [Farm schedule](https://github.com/onkar-shinde-010/kisan_rakshak/blob/main/Kisan_Rakshak/lib/screens/schedule_screen.dart): `Kisan_Rakshak/lib/screens/schedule_screen.dart`

### Community and commerce

- [Community posts](https://github.com/onkar-shinde-010/kisan_rakshak/blob/main/Kisan_Rakshak/lib/screens/community_post_page.dart): `Kisan_Rakshak/lib/screens/community_post_page.dart`
- [Chat](https://github.com/onkar-shinde-010/kisan_rakshak/blob/main/Kisan_Rakshak/lib/screens/chat_screen.dart): `Kisan_Rakshak/lib/screens/chat_screen.dart`
- [Marketplace](https://github.com/onkar-shinde-010/kisan_rakshak/blob/main/Kisan_Rakshak/lib/screens/Marketplace_screen.dart): `Kisan_Rakshak/lib/screens/Marketplace_screen.dart`

### Platform hosts

- [Linux host](https://github.com/onkar-shinde-010/kisan_rakshak/blob/main/Kisan_Rakshak/linux/runner/my_application.cc): `Kisan_Rakshak/linux/runner/my_application.cc`
- [Linux plugins](https://github.com/onkar-shinde-010/kisan_rakshak/blob/main/Kisan_Rakshak/linux/flutter/generated_plugin_registrant.h): `Kisan_Rakshak/linux/flutter/generated_plugin_registrant.h`
- [macOS plugins](https://github.com/onkar-shinde-010/kisan_rakshak/blob/main/Kisan_Rakshak/macos/Flutter/GeneratedPluginRegistrant.swift): `Kisan_Rakshak/macos/Flutter/GeneratedPluginRegistrant.swift`
- [Windows entry](https://github.com/onkar-shinde-010/kisan_rakshak/blob/main/Kisan_Rakshak/windows/runner/main.cpp): `Kisan_Rakshak/windows/runner/main.cpp`
- [Flutter window](https://github.com/onkar-shinde-010/kisan_rakshak/blob/main/Kisan_Rakshak/windows/runner/flutter_window.h): `Kisan_Rakshak/windows/runner/flutter_window.h`
- [Win32 window](https://github.com/onkar-shinde-010/kisan_rakshak/blob/main/Kisan_Rakshak/windows/runner/win32_window.cpp): `Kisan_Rakshak/windows/runner/win32_window.cpp`
- [Win32 window API](https://github.com/onkar-shinde-010/kisan_rakshak/blob/main/Kisan_Rakshak/windows/runner/win32_window.h): `Kisan_Rakshak/windows/runner/win32_window.h`
- [Windows plugins](https://github.com/onkar-shinde-010/kisan_rakshak/blob/main/Kisan_Rakshak/windows/flutter/generated_plugin_registrant.cc): `Kisan_Rakshak/windows/flutter/generated_plugin_registrant.cc`

### Other components

- **Farmer**

## Connections

- Farmer → App entry: opens app
- App entry → Accounts: routes to
- App entry → Crop care: routes to
- App entry → Crop diagnosis: routes to
- App entry → Field analysis: routes to
- App entry → Field map: routes to
- App entry → Farm schedule: routes to
- App entry → Community posts: routes to
- App entry → Chat: routes to
- App entry → Marketplace: routes to
- App entry → Profile: routes to
- Windows entry → Flutter window: creates (evidence: `Kisan_Rakshak/windows/runner/main.cpp`)
- Flutter window → Win32 window API: inherits (evidence: `Kisan_Rakshak/windows/runner/flutter_window.h`)
- Win32 window → Win32 window API: implements (evidence: `Kisan_Rakshak/windows/runner/win32_window.h`)
- Linux host → Linux plugins: registers plugins (evidence: `Kisan_Rakshak/linux/runner/my_application.cc`)
