# samia39/ricemartai_frontend_flutter architecture

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

- Interactive diagram: https://gitdiagram.com/samia39/ricemartai_frontend_flutter
- Repository: https://github.com/samia39/ricemartai_frontend_flutter

## Overview

The repository is a Flutter application whose screen and service names suggest shopping, shop management, user accounts, and AI-assisted features. The README describes only a starter project, and the sampled source contains platform launchers rather than Dart application code. The graph therefore identifies the product areas supported by the file tree but omits uncertain navigation, service calls, and external integrations.

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_account["Accounts"]
  node_routes["App routes<br/>[app_routes.dart]"]
  node_auth_middleware["Auth guard"]
  node_login["Login<br/>[login_screen.dart]"]
  node_register["Registration"]
  node_forgot_password["Password recovery"]
  node_profile["Profile"]
  node_auth_service["Auth service<br/>[auth_service.dart]"]
end

subgraph group_commerce["Shopping"]
  node_dashboard["Dashboard<br/>[dashboard.dart]"]
  node_shop_service["Shop service<br/>[shop_service.dart]"]
  node_shop_creation["Create shop<br/>[create_shops.dart]"]
  node_my_shop["My shop<br/>[my_shop.dart]"]
  node_cart["Cart<br/>[cart_screen.dart]"]
  node_orders["My orders"]
end

subgraph group_management["Shop Management"]
  node_admin["Admin tools<br/>[admin_screen.dart]"]
  node_content_management["Content management"]
end

subgraph group_features["Additional Features"]
  node_ai_detection["AI detection<br/>[ai_detection.dart]"]
  node_ai_suggestion["AI suggestions<br/>[ai_suggestion.dart]"]
  node_chat["Chat<br/>[chat_screen.dart]"]
  node_dashboard_service["Dashboard service"]
end

node_user(("App user"))
node_entry["Flutter entry<br/>[main.dart]"]

click node_entry "https://github.com/samia39/ricemartai_frontend_flutter/blob/main/lib/main.dart"
click node_routes "https://github.com/samia39/ricemartai_frontend_flutter/blob/main/lib/routes/app_routes.dart"
click node_auth_middleware "https://github.com/samia39/ricemartai_frontend_flutter/blob/main/lib/routes/auth_middleware.dart"
click node_login "https://github.com/samia39/ricemartai_frontend_flutter/blob/main/lib/screens/login%20screen/login_screen.dart"
click node_register "https://github.com/samia39/ricemartai_frontend_flutter/blob/main/lib/screens/register_screen.dart"
click node_forgot_password "https://github.com/samia39/ricemartai_frontend_flutter/blob/main/lib/screens/login%20screen/forgot_password.dart"
click node_profile "https://github.com/samia39/ricemartai_frontend_flutter/blob/main/lib/screens/dashboard_screen/profile%20screen/profile_screen.dart"
click node_dashboard "https://github.com/samia39/ricemartai_frontend_flutter/blob/main/lib/screens/dashboard_screen/dashboard.dart"
click node_shop_service "https://github.com/samia39/ricemartai_frontend_flutter/blob/main/lib/core/services/shop_service.dart"
click node_shop_creation "https://github.com/samia39/ricemartai_frontend_flutter/blob/main/lib/screens/dashboard_screen/create_shops.dart"
click node_my_shop "https://github.com/samia39/ricemartai_frontend_flutter/blob/main/lib/screens/dashboard_screen/my_shop.dart"
click node_cart "https://github.com/samia39/ricemartai_frontend_flutter/blob/main/lib/screens/dashboard_screen/cart_screen.dart"
click node_orders "https://github.com/samia39/ricemartai_frontend_flutter/blob/main/lib/screens/dashboard_screen/profile%20screen/my_orders_screen.dart"
click node_admin "https://github.com/samia39/ricemartai_frontend_flutter/blob/main/lib/screens/dashboard_screen/admin%20screen/admin_screen.dart"
click node_content_management "https://github.com/samia39/ricemartai_frontend_flutter/blob/main/lib/screens/dashboard_screen/admin%20screen/content_management.dart"
click node_ai_detection "https://github.com/samia39/ricemartai_frontend_flutter/blob/main/lib/screens/dashboard_screen/ai%20screen/ai_detection.dart"
click node_ai_suggestion "https://github.com/samia39/ricemartai_frontend_flutter/blob/main/lib/screens/dashboard_screen/ai%20screen/ai_suggestion.dart"
click node_chat "https://github.com/samia39/ricemartai_frontend_flutter/blob/main/lib/screens/dashboard_screen/chat_screen.dart"
click node_dashboard_service "https://github.com/samia39/ricemartai_frontend_flutter/blob/main/lib/core/services/dashboard_service.dart"
click node_auth_service "https://github.com/samia39/ricemartai_frontend_flutter/blob/main/lib/core/services/auth_service.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_routes,node_auth_middleware,node_login,node_register,node_forgot_password,node_profile,node_auth_service,node_user toneBlue
class node_dashboard,node_shop_service,node_shop_creation,node_my_shop,node_cart,node_orders toneAmber
class node_admin,node_content_management toneMint
class node_ai_detection,node_ai_suggestion,node_chat,node_dashboard_service toneRose
class node_entry toneTeal
```

## Components

### Accounts

- [App routes](https://github.com/samia39/ricemartai_frontend_flutter/blob/main/lib/routes/app_routes.dart): `lib/routes/app_routes.dart`
- [Auth guard](https://github.com/samia39/ricemartai_frontend_flutter/blob/main/lib/routes/auth_middleware.dart): `lib/routes/auth_middleware.dart`
- [Login](https://github.com/samia39/ricemartai_frontend_flutter/blob/main/lib/screens/login%20screen/login_screen.dart): `lib/screens/login screen/login_screen.dart`
- [Registration](https://github.com/samia39/ricemartai_frontend_flutter/blob/main/lib/screens/register_screen.dart): `lib/screens/register_screen.dart`
- [Password recovery](https://github.com/samia39/ricemartai_frontend_flutter/blob/main/lib/screens/login%20screen/forgot_password.dart): `lib/screens/login screen/forgot_password.dart`
- [Profile](https://github.com/samia39/ricemartai_frontend_flutter/blob/main/lib/screens/dashboard_screen/profile%20screen/profile_screen.dart): `lib/screens/dashboard_screen/profile screen/profile_screen.dart`
- [Auth service](https://github.com/samia39/ricemartai_frontend_flutter/blob/main/lib/core/services/auth_service.dart): `lib/core/services/auth_service.dart`

### Shopping

- [Dashboard](https://github.com/samia39/ricemartai_frontend_flutter/blob/main/lib/screens/dashboard_screen/dashboard.dart): `lib/screens/dashboard_screen/dashboard.dart`
- [Shop service](https://github.com/samia39/ricemartai_frontend_flutter/blob/main/lib/core/services/shop_service.dart): `lib/core/services/shop_service.dart`
- [Create shop](https://github.com/samia39/ricemartai_frontend_flutter/blob/main/lib/screens/dashboard_screen/create_shops.dart): `lib/screens/dashboard_screen/create_shops.dart`
- [My shop](https://github.com/samia39/ricemartai_frontend_flutter/blob/main/lib/screens/dashboard_screen/my_shop.dart): `lib/screens/dashboard_screen/my_shop.dart`
- [Cart](https://github.com/samia39/ricemartai_frontend_flutter/blob/main/lib/screens/dashboard_screen/cart_screen.dart): `lib/screens/dashboard_screen/cart_screen.dart`
- [My orders](https://github.com/samia39/ricemartai_frontend_flutter/blob/main/lib/screens/dashboard_screen/profile%20screen/my_orders_screen.dart): `lib/screens/dashboard_screen/profile screen/my_orders_screen.dart`

### Shop Management

- [Admin tools](https://github.com/samia39/ricemartai_frontend_flutter/blob/main/lib/screens/dashboard_screen/admin%20screen/admin_screen.dart): `lib/screens/dashboard_screen/admin screen/admin_screen.dart`
- [Content management](https://github.com/samia39/ricemartai_frontend_flutter/blob/main/lib/screens/dashboard_screen/admin%20screen/content_management.dart): `lib/screens/dashboard_screen/admin screen/content_management.dart`

### Additional Features

- [AI detection](https://github.com/samia39/ricemartai_frontend_flutter/blob/main/lib/screens/dashboard_screen/ai%20screen/ai_detection.dart): `lib/screens/dashboard_screen/ai screen/ai_detection.dart`
- [AI suggestions](https://github.com/samia39/ricemartai_frontend_flutter/blob/main/lib/screens/dashboard_screen/ai%20screen/ai_suggestion.dart): `lib/screens/dashboard_screen/ai screen/ai_suggestion.dart`
- [Chat](https://github.com/samia39/ricemartai_frontend_flutter/blob/main/lib/screens/dashboard_screen/chat_screen.dart): `lib/screens/dashboard_screen/chat_screen.dart`
- [Dashboard service](https://github.com/samia39/ricemartai_frontend_flutter/blob/main/lib/core/services/dashboard_service.dart): `lib/core/services/dashboard_service.dart`

### Other components

- **App user**
- [Flutter entry](https://github.com/samia39/ricemartai_frontend_flutter/blob/main/lib/main.dart): `lib/main.dart`
