# apknation/mkulima architecture

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

- Interactive diagram: https://gitdiagram.com/apknation/mkulima
- Repository: https://github.com/apknation/mkulima

## Overview

Mkulima is a Flutter agricultural-community app, suggested by its feature and data directories; the README itself describes only a starter Flutter project. The apparent user journey is onboarding or authentication into the main shell, then browsing marketplace, farm, community, guides, prices, and weather features. The tree also shows catalog data models, seed data, and a repository layer. Feature wiring and runtime behavior were not sampled, so the relationships below are dashed and unverified rather than asserted as inspected calls.

Main entry points: [`lib/features/shell/main_shell.dart`](https://github.com/apknation/mkulima/blob/main/lib/features/shell/main_shell.dart) (Main navigation), [`lib/features/marketplace/marketplace_screen.dart`](https://github.com/apknation/mkulima/blob/main/lib/features/marketplace/marketplace_screen.dart) (Marketplace), [`lib/data/repositories/catalog_repository.dart`](https://github.com/apknation/mkulima/blob/main/lib/data/repositories/catalog_repository.dart) (Catalog repository), [`lib/main.dart`](https://github.com/apknation/mkulima/blob/main/lib/main.dart) (App bootstrap)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["App entry"]
  node_app["App bootstrap<br/>[main.dart]"]
  node_onboarding["Onboarding"]
  node_auth["Sign in and register<br/>[login_screen.dart]"]
  node_shell["Main navigation<br/>[main_shell.dart]"]
  node_home["Home<br/>[home_screen.dart]"]
end

subgraph group_catalog["Marketplace and farm"]
  node_marketplace["Marketplace"]
  node_product["Product details"]
  node_listing["Create listing"]
  node_farm["Farm profile<br/>[farm_screen.dart]"]
end

subgraph group_community["Community and learning"]
  node_community["Community feed"]
  node_post["Post creation and detail"]
  node_guides["Farming guides<br/>[guides_screen.dart]"]
end

subgraph group_support["Agriculture information"]
  node_prices["Market prices<br/>[prices_screen.dart]"]
  node_weather["Weather"]
  node_profile["Profile and saved items"]
end

subgraph group_data["Data and shared UI"]
  node_repository["Catalog repository"]
  node_seed["Seed datasets"]
  node_models["Domain models"]
  node_state["App state<br/>[app_state.dart]"]
  node_widgets["Shared widgets"]
end

node_farmer(("Farmer"))

node_farmer -.->|"opens"| node_app
node_app -.->|"starts"| node_onboarding
node_onboarding -.->|"continues to"| node_auth
node_auth -.->|"enters"| node_shell
node_shell -.->|"shows"| node_home
node_shell -.->|"opens"| node_marketplace
node_shell -.->|"opens"| node_farm
node_shell -.->|"opens"| node_community
node_shell -.->|"opens"| node_guides
node_shell -.->|"opens"| node_prices
node_shell -.->|"opens"| node_weather
node_shell -.->|"opens"| node_profile
node_marketplace -.->|"opens"| node_product
node_marketplace -.->|"opens"| node_listing
node_community -.->|"opens"| node_post
node_repository -.->|"may read"| node_seed
node_repository -.->|"may use"| node_models
node_marketplace -.->|"may request data"| node_repository
node_farm -.->|"may use"| node_models
node_home -.->|"may render"| node_widgets
node_shell -.->|"may use"| node_state

click node_app "https://github.com/apknation/mkulima/blob/main/lib/main.dart"
click node_onboarding "https://github.com/apknation/mkulima/blob/main/lib/features/onboarding/onboarding_screen.dart"
click node_auth "https://github.com/apknation/mkulima/blob/main/lib/features/auth/login_screen.dart"
click node_shell "https://github.com/apknation/mkulima/blob/main/lib/features/shell/main_shell.dart"
click node_home "https://github.com/apknation/mkulima/blob/main/lib/features/home/home_screen.dart"
click node_marketplace "https://github.com/apknation/mkulima/blob/main/lib/features/marketplace/marketplace_screen.dart"
click node_product "https://github.com/apknation/mkulima/blob/main/lib/features/marketplace/product_detail_screen.dart"
click node_listing "https://github.com/apknation/mkulima/blob/main/lib/features/marketplace/create_listing_screen.dart"
click node_farm "https://github.com/apknation/mkulima/blob/main/lib/features/farm/farm_screen.dart"
click node_community "https://github.com/apknation/mkulima/blob/main/lib/features/community/community_screen.dart"
click node_post "https://github.com/apknation/mkulima/blob/main/lib/features/community/create_post_screen.dart"
click node_guides "https://github.com/apknation/mkulima/blob/main/lib/features/guides/guides_screen.dart"
click node_prices "https://github.com/apknation/mkulima/blob/main/lib/features/prices/prices_screen.dart"
click node_weather "https://github.com/apknation/mkulima/blob/main/lib/features/weather/weather_screen.dart"
click node_profile "https://github.com/apknation/mkulima/blob/main/lib/features/profile/profile_screen.dart"
click node_repository "https://github.com/apknation/mkulima/blob/main/lib/data/repositories/catalog_repository.dart"
click node_seed "https://github.com/apknation/mkulima/tree/main/lib/data/seed"
click node_models "https://github.com/apknation/mkulima/tree/main/lib/data/models"
click node_state "https://github.com/apknation/mkulima/blob/main/lib/core/state/app_state.dart"
click node_widgets "https://github.com/apknation/mkulima/tree/main/lib/core/widgets"

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_app,node_onboarding,node_auth,node_shell,node_home toneBlue
class node_marketplace,node_product,node_listing,node_farm toneAmber
class node_community,node_post,node_guides toneMint
class node_prices,node_weather,node_profile toneRose
class node_repository,node_seed,node_models,node_state,node_widgets,node_farmer toneIndigo
```

## Components

### App entry

- [App bootstrap](https://github.com/apknation/mkulima/blob/main/lib/main.dart): `lib/main.dart`
- [Onboarding](https://github.com/apknation/mkulima/blob/main/lib/features/onboarding/onboarding_screen.dart): `lib/features/onboarding/onboarding_screen.dart`
- [Sign in and register](https://github.com/apknation/mkulima/blob/main/lib/features/auth/login_screen.dart): `lib/features/auth/login_screen.dart`
- [Main navigation](https://github.com/apknation/mkulima/blob/main/lib/features/shell/main_shell.dart): `lib/features/shell/main_shell.dart`
- [Home](https://github.com/apknation/mkulima/blob/main/lib/features/home/home_screen.dart): `lib/features/home/home_screen.dart`

### Marketplace and farm

- [Marketplace](https://github.com/apknation/mkulima/blob/main/lib/features/marketplace/marketplace_screen.dart): `lib/features/marketplace/marketplace_screen.dart`
- [Product details](https://github.com/apknation/mkulima/blob/main/lib/features/marketplace/product_detail_screen.dart): `lib/features/marketplace/product_detail_screen.dart`
- [Create listing](https://github.com/apknation/mkulima/blob/main/lib/features/marketplace/create_listing_screen.dart): `lib/features/marketplace/create_listing_screen.dart`
- [Farm profile](https://github.com/apknation/mkulima/blob/main/lib/features/farm/farm_screen.dart): `lib/features/farm/farm_screen.dart`

### Community and learning

- [Community feed](https://github.com/apknation/mkulima/blob/main/lib/features/community/community_screen.dart): `lib/features/community/community_screen.dart`
- [Post creation and detail](https://github.com/apknation/mkulima/blob/main/lib/features/community/create_post_screen.dart): `lib/features/community/create_post_screen.dart`
- [Farming guides](https://github.com/apknation/mkulima/blob/main/lib/features/guides/guides_screen.dart): `lib/features/guides/guides_screen.dart`

### Agriculture information

- [Market prices](https://github.com/apknation/mkulima/blob/main/lib/features/prices/prices_screen.dart): `lib/features/prices/prices_screen.dart`
- [Weather](https://github.com/apknation/mkulima/blob/main/lib/features/weather/weather_screen.dart): `lib/features/weather/weather_screen.dart`
- [Profile and saved items](https://github.com/apknation/mkulima/blob/main/lib/features/profile/profile_screen.dart): `lib/features/profile/profile_screen.dart`

### Data and shared UI

- [Catalog repository](https://github.com/apknation/mkulima/blob/main/lib/data/repositories/catalog_repository.dart): `lib/data/repositories/catalog_repository.dart`
- [Seed datasets](https://github.com/apknation/mkulima/tree/main/lib/data/seed): `lib/data/seed`
- [Domain models](https://github.com/apknation/mkulima/tree/main/lib/data/models): `lib/data/models`
- [App state](https://github.com/apknation/mkulima/blob/main/lib/core/state/app_state.dart): `lib/core/state/app_state.dart`
- [Shared widgets](https://github.com/apknation/mkulima/tree/main/lib/core/widgets): `lib/core/widgets`

### Other components

- **Farmer**

## Connections

- Farmer → App bootstrap: opens
- App bootstrap → Onboarding: starts
- Onboarding → Sign in and register: continues to
- Sign in and register → Main navigation: enters
- Main navigation → Home: shows
- Main navigation → Marketplace: opens
- Main navigation → Farm profile: opens
- Main navigation → Community feed: opens
- Main navigation → Farming guides: opens
- Main navigation → Market prices: opens
- Main navigation → Weather: opens
- Main navigation → Profile and saved items: opens
- Marketplace → Product details: opens
- Marketplace → Create listing: opens
- Community feed → Post creation and detail: opens
- Catalog repository → Seed datasets: may read
- Catalog repository → Domain models: may use
- Marketplace → Catalog repository: may request data
- Farm profile → Domain models: may use
- Home → Shared widgets: may render
- Main navigation → App state: may use
