# pranavika24/raitha-sethu architecture

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

- Interactive diagram: https://gitdiagram.com/pranavika24/raitha-sethu
- Repository: https://github.com/pranavika24/raitha-sethu

## Overview

The repository appears to be a Flutter marketplace for crops, with separate customer, farmer, and admin experiences. A likely user journey is authentication, crop discovery or upload, bidding and ordering, then delivery and payment; the filenames also indicate chat, quality analysis, and dispute handling. The README only describes a starter Flutter project, and no Dart implementation was excerpted, so these workflows and service links are inferred from the tree; dashed edges mark unverified relationships.

Main entry points: [`lib/screens/auth`](https://github.com/pranavika24/raitha-sethu/tree/main/lib/screens/auth) (Authentication), [`lib/screens/farmer/farmer_dashboard.dart`](https://github.com/pranavika24/raitha-sethu/blob/main/lib/screens/farmer/farmer_dashboard.dart) (Farmer home), [`lib/main.dart`](https://github.com/pranavika24/raitha-sethu/blob/main/lib/main.dart) (App entry), [`lib/screens/customer/customer_dashboard.dart`](https://github.com/pranavika24/raitha-sethu/blob/main/lib/screens/customer/customer_dashboard.dart) (Customer home)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["App and access"]
  node_entry["App entry<br/>[main.dart]"]
  node_auth["Authentication"]
end

subgraph group_market["Crop marketplace"]
  node_customer_home["Customer home"]
  node_browse["Crop browsing"]
  node_crop_detail["Crop details"]
  node_farmer_home["Farmer home"]
  node_crop_upload["Crop upload"]
  node_bids["Bidding"]
end

subgraph group_commerce["Orders and delivery"]
  node_purchases["Purchases"]
  node_payments["Payments"]
  node_delivery["Delivery tracking"]
  node_delivery_update["Delivery updates"]
end

subgraph group_support["Operations and support"]
  node_admin_tools["Admin dashboard"]
  node_chatbot["Chatbot"]
  node_quality["Quality analysis"]
  node_disputes["Dispute records<br/>[dispute_model.dart]"]
end

node_customer(("Customer"))
node_farmer(("Farmer"))
node_admin(("Administrator"))
node_firebase[("Firebase")]

node_customer -.->|"opens app"| node_entry
node_farmer -.->|"opens app"| node_entry
node_admin -.->|"opens app"| node_entry
node_entry -.->|"starts access"| node_auth
node_auth -.->|"routes customer"| node_customer_home
node_auth -.->|"routes farmer"| node_farmer_home
node_auth -.->|"routes admin"| node_admin_tools
node_customer_home -.->|"offers browsing"| node_browse
node_browse -.->|"opens crop"| node_crop_detail
node_farmer_home -.->|"offers upload"| node_crop_upload
node_farmer_home -.->|"offers bids"| node_bids
node_customer_home -.->|"shows purchases"| node_purchases
node_purchases -.->|"supports payment"| node_payments
node_purchases -.->|"shows tracking"| node_delivery
node_farmer_home -.->|"offers updates"| node_delivery_update
node_crop_upload -.->|"may analyze"| node_quality
node_admin_tools -.->|"may review"| node_disputes
node_chatbot -.->|"may use"| node_firebase

click node_entry "https://github.com/pranavika24/raitha-sethu/blob/main/lib/main.dart"
click node_auth "https://github.com/pranavika24/raitha-sethu/tree/main/lib/screens/auth"
click node_customer_home "https://github.com/pranavika24/raitha-sethu/blob/main/lib/screens/customer/customer_dashboard.dart"
click node_browse "https://github.com/pranavika24/raitha-sethu/blob/main/lib/screens/customer/browse_crops_screen.dart"
click node_crop_detail "https://github.com/pranavika24/raitha-sethu/blob/main/lib/screens/customer/crop_detail_screen.dart"
click node_farmer_home "https://github.com/pranavika24/raitha-sethu/blob/main/lib/screens/farmer/farmer_dashboard.dart"
click node_crop_upload "https://github.com/pranavika24/raitha-sethu/blob/main/lib/screens/farmer/upload_crop_screen.dart"
click node_bids "https://github.com/pranavika24/raitha-sethu/blob/main/lib/screens/farmer/crop_bids_screen.dart"
click node_purchases "https://github.com/pranavika24/raitha-sethu/blob/main/lib/screens/customer/my_purchases_screen.dart"
click node_payments "https://github.com/pranavika24/raitha-sethu/blob/main/lib/screens/customer/payment_screen.dart"
click node_delivery "https://github.com/pranavika24/raitha-sethu/blob/main/lib/screens/shared/delivery_tracking_view.dart"
click node_delivery_update "https://github.com/pranavika24/raitha-sethu/blob/main/lib/screens/farmer/delivery_update_screen.dart"
click node_admin_tools "https://github.com/pranavika24/raitha-sethu/blob/main/lib/screens/admin/admin_dashboard.dart"
click node_chatbot "https://github.com/pranavika24/raitha-sethu/blob/main/lib/screens/shared/chatbot_screen.dart"
click node_quality "https://github.com/pranavika24/raitha-sethu/blob/main/lib/services/ai_quality_service.dart"
click node_disputes "https://github.com/pranavika24/raitha-sethu/blob/main/lib/models/dispute_model.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_entry,node_auth toneBlue
class node_customer_home,node_browse,node_crop_detail,node_farmer_home,node_crop_upload,node_bids,node_firebase toneAmber
class node_purchases,node_payments,node_delivery,node_delivery_update toneMint
class node_admin_tools,node_chatbot,node_quality,node_disputes toneRose
class node_customer,node_farmer,node_admin toneIndigo
```

## Components

### App and access

- [App entry](https://github.com/pranavika24/raitha-sethu/blob/main/lib/main.dart): `lib/main.dart`
- [Authentication](https://github.com/pranavika24/raitha-sethu/tree/main/lib/screens/auth): `lib/screens/auth`

### Crop marketplace

- [Customer home](https://github.com/pranavika24/raitha-sethu/blob/main/lib/screens/customer/customer_dashboard.dart): `lib/screens/customer/customer_dashboard.dart`
- [Crop browsing](https://github.com/pranavika24/raitha-sethu/blob/main/lib/screens/customer/browse_crops_screen.dart): `lib/screens/customer/browse_crops_screen.dart`
- [Crop details](https://github.com/pranavika24/raitha-sethu/blob/main/lib/screens/customer/crop_detail_screen.dart): `lib/screens/customer/crop_detail_screen.dart`
- [Farmer home](https://github.com/pranavika24/raitha-sethu/blob/main/lib/screens/farmer/farmer_dashboard.dart): `lib/screens/farmer/farmer_dashboard.dart`
- [Crop upload](https://github.com/pranavika24/raitha-sethu/blob/main/lib/screens/farmer/upload_crop_screen.dart): `lib/screens/farmer/upload_crop_screen.dart`
- [Bidding](https://github.com/pranavika24/raitha-sethu/blob/main/lib/screens/farmer/crop_bids_screen.dart): `lib/screens/farmer/crop_bids_screen.dart`

### Orders and delivery

- [Purchases](https://github.com/pranavika24/raitha-sethu/blob/main/lib/screens/customer/my_purchases_screen.dart): `lib/screens/customer/my_purchases_screen.dart`
- [Payments](https://github.com/pranavika24/raitha-sethu/blob/main/lib/screens/customer/payment_screen.dart): `lib/screens/customer/payment_screen.dart`
- [Delivery tracking](https://github.com/pranavika24/raitha-sethu/blob/main/lib/screens/shared/delivery_tracking_view.dart): `lib/screens/shared/delivery_tracking_view.dart`
- [Delivery updates](https://github.com/pranavika24/raitha-sethu/blob/main/lib/screens/farmer/delivery_update_screen.dart): `lib/screens/farmer/delivery_update_screen.dart`

### Operations and support

- [Admin dashboard](https://github.com/pranavika24/raitha-sethu/blob/main/lib/screens/admin/admin_dashboard.dart): `lib/screens/admin/admin_dashboard.dart`
- [Chatbot](https://github.com/pranavika24/raitha-sethu/blob/main/lib/screens/shared/chatbot_screen.dart): `lib/screens/shared/chatbot_screen.dart`
- [Quality analysis](https://github.com/pranavika24/raitha-sethu/blob/main/lib/services/ai_quality_service.dart): `lib/services/ai_quality_service.dart`
- [Dispute records](https://github.com/pranavika24/raitha-sethu/blob/main/lib/models/dispute_model.dart): `lib/models/dispute_model.dart`

### Other components

- **Customer**
- **Farmer**
- **Administrator**
- **Firebase**

## Connections

- Customer → App entry: opens app
- Farmer → App entry: opens app
- Administrator → App entry: opens app
- App entry → Authentication: starts access
- Authentication → Customer home: routes customer
- Authentication → Farmer home: routes farmer
- Authentication → Admin dashboard: routes admin
- Customer home → Crop browsing: offers browsing
- Crop browsing → Crop details: opens crop
- Farmer home → Crop upload: offers upload
- Farmer home → Bidding: offers bids
- Customer home → Purchases: shows purchases
- Purchases → Payments: supports payment
- Purchases → Delivery tracking: shows tracking
- Farmer home → Delivery updates: offers updates
- Crop upload → Quality analysis: may analyze
- Admin dashboard → Dispute records: may review
- Chatbot → Firebase: may use
