Cart
Two-stage cart: an offline-first local cart kept per-user in SharedPreferences during browsing, then a server-side Medusa cart created lazily at checkout. The Medusa cart owns line items, promo codes, shipping and payment sessions.
Riverpod · Medusa Store API · SharedPreferences
diagram · Cart — Riverpod · Medusa Store API · SharedPreferences
4 layers 11 nodes 4 flows
01
LayerPresentation
UI · Controllers · Widgets
1 node
02
LayerDomain
Entities · Use Cases · Repository contracts
4 nodes
03
LayerData
Repo Impl · Remote / Local Data Sources
4 nodes
04
LayerDependency Injection
Routes · Bindings · Service Locator
2 nodes
cards are peers grouped by layer — pick a flow to trace real callsclick any node to drill in →