Flutter UI Walkthrough — Order Details
Where this flow starts
Reached by tapping View on an order card in My Orders.
What the shopper sees
The order number and its status badge at the top, followed by a Shipping Address card, a Billing Address card (a green checkmark and “Same as shipping address” when the two match, or the full billing address when they don’t), a Delivery Option card (shown only when the order has a recorded shipment option), a Payment Method card, an Items Ordered (N) card, and an Order Summary (Total Bill → Total Savings, if any → Subtotal → Tax → Shipping → Round Off, if non-zero → Total). Below that sits a Track Order Status button and a Download Invoice link; a Cancel Order action also appears, but only while the order is still in a cancellable state.
What the shopper does here
- Taps Track Order Status to open this order’s Track Shipment screen.
- Taps Download Invoice.
- Taps Cancel Order, visible only while the order’s status is
PlacedorPacking.
How it’s built
This is a genuinely separate, always-fresh fetch — not Order Confirmation’s cached snapshot. OrderDetailsController calls OrderService.getOrderDetail(orderId), a GraphQL OrderDetail($orderId) query run with fetchPolicy: FetchPolicy.networkOnly, every time the screen opens. This is a different controller, a different repository interface, and a different model (OrderDetailModel) from Order Confirmation’s OrderConfirmationController/ICheckoutRepository.getOrder() client cache — the two screens look similar but read from entirely different sources. Like My Orders and Track Shipment, this controller is registered per-order (Get.lazyPut(..., tag: orderId)) and pushed on top of whatever screen opened it.
Cancel Order and Download Invoice are both stubs today. Cancel Order only shows up when the order can still plausibly be cancelled (Placed/Packing), but tapping it just shows a snackbar (“Order cancellation is not available yet.”) — there’s no real cancellation request behind it. Download Invoice behaves the same way, with its own snackbar (“Invoice download is not available yet.”) — the identical stub pattern Order Confirmation’s own Download Invoice uses, just with a separate call site here.
Track Order Status hands off to Track Shipment with one vestigial parameter. The button calls Get.toNamed(AppRoutes.orderTracking, parameters: {'orderId': ..., 'sagaOrderId': ''}) — the empty sagaOrderId is never actually read by the tracking screen, which only looks at orderId.

Related Documents
- BRD-030 — My Orders, Order Details & Shipment Tracking
- SR-031 — My Orders, Order Details & Shipment Tracking: System Requirements
- ADR-00047 — Order Query and Tracking Channel Strategy for My Orders
- Architecture-00026 — My Orders, Order Details & Track Shipment Component Topology and Data Flow
- Technical Debt — My Orders, Order Details & Track Shipment Gaps — TD-33 (Cancel Order), TD-34 (Download Invoice), TD-37 (vestigial
sagaOrderId) - shop-service
- order-service
- See also: My Orders, Order Confirmation
- Previous: My Orders
- Next: Track Shipment