# khoabm/goshare architecture

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

- Interactive diagram: https://gitdiagram.com/khoabm/goshare
- Repository: https://github.com/khoabm/goshare

## Overview

GoShare appears to be a Flutter ride-booking app, with features for account access, finding and booking trips, tracking rides, and managing dependents. The feature tree also shows trip history, feedback, and wallet top-ups. The README is empty, and the provided source excerpts cover only native app shells, so the feature nodes are identified from their paths; their runtime calls and data flow are not verified. Dashed links mark only the likely user-facing workflow, not confirmed control flow.

Main entry points: [`lib/features/home/screen/home_screen.dart`](https://github.com/khoabm/goshare/blob/main/lib/features/home/screen/home_screen.dart) (Home and search), [`lib/features/trip/screens/search_trip_route_screen.dart`](https://github.com/khoabm/goshare/blob/main/lib/features/trip/screens/search_trip_route_screen.dart) (Search trip route), [`lib/features/trip/screens/car_choosing_screen.dart`](https://github.com/khoabm/goshare/blob/main/lib/features/trip/screens/car_choosing_screen.dart) (Choose car), [`lib/features/trip/screens/route_confirm_screen.dart`](https://github.com/khoabm/goshare/blob/main/lib/features/trip/screens/route_confirm_screen.dart) (Confirm route)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_accounts["Accounts"]
  node_login["Sign in<br/>[log_in_screen.dart]"]
  node_signup["Sign up"]
end

subgraph group_booking["Ride booking"]
  node_home["Home and search<br/>[home_screen.dart]"]
  node_destination["Create destination"]
  node_tripsearch["Search trip route"]
  node_carchoice["Choose car"]
  node_routeconfirm["Confirm route"]
  node_findtrip["Find trip"]
  node_driverconnect["Connect to driver"]
  node_pickup["Driver pickup"]
  node_ontrip["On trip"]
  node_chat["Trip chat<br/>[chat_screen.dart]"]
end

subgraph group_dependents["Dependent rides"]
  node_dependents["Manage dependents"]
  node_dependentlist["Dependent list"]
  node_guardiantrip["Observe dependent trip"]
end

subgraph group_postride["Rider services"]
  node_history["Trip history"]
  node_feedback["Driver feedback<br/>[feedback.dart]"]
  node_wallet["Wallet top-up"]
end

node_rider(("Rider"))

node_rider -.->|"signs in"| node_login
node_rider -.->|"creates account"| node_signup
node_rider -.->|"seeks ride"| node_home
node_home -.->|"sets destination"| node_destination
node_home -.->|"searches route"| node_tripsearch
node_tripsearch -.->|"selects car"| node_carchoice
node_carchoice -.->|"confirms route"| node_routeconfirm
node_routeconfirm -.->|"requests trip"| node_findtrip
node_findtrip -.->|"connects driver"| node_driverconnect
node_driverconnect -.->|"coordinates pickup"| node_pickup
node_pickup -.->|"continues ride"| node_ontrip
node_ontrip -.->|"supports messaging"| node_chat
node_rider -.->|"manages riders"| node_dependents
node_dependents -.->|"views riders"| node_dependentlist
node_rider -.->|"observes ride"| node_guardiantrip
node_rider -.->|"reviews trips"| node_history
node_rider -.->|"leaves feedback"| node_feedback
node_rider -.->|"tops up"| node_wallet

click node_login "https://github.com/khoabm/goshare/blob/main/lib/features/login/screen/log_in_screen.dart"
click node_signup "https://github.com/khoabm/goshare/blob/main/lib/features/signup/screen/sign_up_screen.dart"
click node_home "https://github.com/khoabm/goshare/blob/main/lib/features/home/screen/home_screen.dart"
click node_destination "https://github.com/khoabm/goshare/blob/main/lib/features/create_destination/screens/create_destination_screen.dart"
click node_tripsearch "https://github.com/khoabm/goshare/blob/main/lib/features/trip/screens/search_trip_route_screen.dart"
click node_carchoice "https://github.com/khoabm/goshare/blob/main/lib/features/trip/screens/car_choosing_screen.dart"
click node_routeconfirm "https://github.com/khoabm/goshare/blob/main/lib/features/trip/screens/route_confirm_screen.dart"
click node_findtrip "https://github.com/khoabm/goshare/blob/main/lib/features/trip/screens/find_trip_screen.dart"
click node_driverconnect "https://github.com/khoabm/goshare/blob/main/lib/features/connect_to_driver/screen/connect_to_driver_screen.dart"
click node_pickup "https://github.com/khoabm/goshare/blob/main/lib/features/trip/screens/driver_pick_up_screen.dart"
click node_ontrip "https://github.com/khoabm/goshare/blob/main/lib/features/trip/screens/on_trip_screen.dart"
click node_chat "https://github.com/khoabm/goshare/blob/main/lib/features/trip/screens/chat_screen.dart"
click node_dependents "https://github.com/khoabm/goshare/blob/main/lib/features/dependent_mng/dependent_screen.dart"
click node_dependentlist "https://github.com/khoabm/goshare/blob/main/lib/features/dependent_list/screens/dependent_list_screen.dart"
click node_guardiantrip "https://github.com/khoabm/goshare/blob/main/lib/features/trip/screens/guardian_orbserve_dependent_trip_screen.dart"
click node_history "https://github.com/khoabm/goshare/blob/main/lib/features/trip_history/trip_history_screen.dart"
click node_feedback "https://github.com/khoabm/goshare/blob/main/lib/features/feedback/feedback.dart"
click node_wallet "https://github.com/khoabm/goshare/blob/main/lib/features/menu_user/money-topup/money-topup-screen.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_login,node_signup toneBlue
class node_home,node_destination,node_tripsearch,node_carchoice,node_routeconfirm,node_findtrip,node_driverconnect,node_pickup,node_ontrip,node_chat toneAmber
class node_dependents,node_dependentlist,node_guardiantrip toneMint
class node_history,node_feedback,node_wallet toneRose
class node_rider toneIndigo
```

## Components

### Accounts

- [Sign in](https://github.com/khoabm/goshare/blob/main/lib/features/login/screen/log_in_screen.dart): `lib/features/login/screen/log_in_screen.dart`
- [Sign up](https://github.com/khoabm/goshare/blob/main/lib/features/signup/screen/sign_up_screen.dart): `lib/features/signup/screen/sign_up_screen.dart`

### Ride booking

- [Home and search](https://github.com/khoabm/goshare/blob/main/lib/features/home/screen/home_screen.dart): `lib/features/home/screen/home_screen.dart`
- [Create destination](https://github.com/khoabm/goshare/blob/main/lib/features/create_destination/screens/create_destination_screen.dart): `lib/features/create_destination/screens/create_destination_screen.dart`
- [Search trip route](https://github.com/khoabm/goshare/blob/main/lib/features/trip/screens/search_trip_route_screen.dart): `lib/features/trip/screens/search_trip_route_screen.dart`
- [Choose car](https://github.com/khoabm/goshare/blob/main/lib/features/trip/screens/car_choosing_screen.dart): `lib/features/trip/screens/car_choosing_screen.dart`
- [Confirm route](https://github.com/khoabm/goshare/blob/main/lib/features/trip/screens/route_confirm_screen.dart): `lib/features/trip/screens/route_confirm_screen.dart`
- [Find trip](https://github.com/khoabm/goshare/blob/main/lib/features/trip/screens/find_trip_screen.dart): `lib/features/trip/screens/find_trip_screen.dart`
- [Connect to driver](https://github.com/khoabm/goshare/blob/main/lib/features/connect_to_driver/screen/connect_to_driver_screen.dart): `lib/features/connect_to_driver/screen/connect_to_driver_screen.dart`
- [Driver pickup](https://github.com/khoabm/goshare/blob/main/lib/features/trip/screens/driver_pick_up_screen.dart): `lib/features/trip/screens/driver_pick_up_screen.dart`
- [On trip](https://github.com/khoabm/goshare/blob/main/lib/features/trip/screens/on_trip_screen.dart): `lib/features/trip/screens/on_trip_screen.dart`
- [Trip chat](https://github.com/khoabm/goshare/blob/main/lib/features/trip/screens/chat_screen.dart): `lib/features/trip/screens/chat_screen.dart`

### Dependent rides

- [Manage dependents](https://github.com/khoabm/goshare/blob/main/lib/features/dependent_mng/dependent_screen.dart): `lib/features/dependent_mng/dependent_screen.dart`
- [Dependent list](https://github.com/khoabm/goshare/blob/main/lib/features/dependent_list/screens/dependent_list_screen.dart): `lib/features/dependent_list/screens/dependent_list_screen.dart`
- [Observe dependent trip](https://github.com/khoabm/goshare/blob/main/lib/features/trip/screens/guardian_orbserve_dependent_trip_screen.dart): `lib/features/trip/screens/guardian_orbserve_dependent_trip_screen.dart`

### Rider services

- [Trip history](https://github.com/khoabm/goshare/blob/main/lib/features/trip_history/trip_history_screen.dart): `lib/features/trip_history/trip_history_screen.dart`
- [Driver feedback](https://github.com/khoabm/goshare/blob/main/lib/features/feedback/feedback.dart): `lib/features/feedback/feedback.dart`
- [Wallet top-up](https://github.com/khoabm/goshare/blob/main/lib/features/menu_user/money-topup/money-topup-screen.dart): `lib/features/menu_user/money-topup/money-topup-screen.dart`

### Other components

- **Rider**

## Connections

- Rider → Sign in: signs in
- Rider → Sign up: creates account
- Rider → Home and search: seeks ride
- Home and search → Create destination: sets destination
- Home and search → Search trip route: searches route
- Search trip route → Choose car: selects car
- Choose car → Confirm route: confirms route
- Confirm route → Find trip: requests trip
- Find trip → Connect to driver: connects driver
- Connect to driver → Driver pickup: coordinates pickup
- Driver pickup → On trip: continues ride
- On trip → Trip chat: supports messaging
- Rider → Manage dependents: manages riders
- Manage dependents → Dependent list: views riders
- Rider → Observe dependent trip: observes ride
- Rider → Trip history: reviews trips
- Rider → Driver feedback: leaves feedback
- Rider → Wallet top-up: tops up
