Flutter UI Walkthrough — Buy Now Checkout

By Engineering Team•October 3, 2026•4 min read

Where this flow starts

This screen is reached from the Product Detail screen’s sticky footer — tapping Buy Now there (next to Add to Cart) skips the cart entirely and lands directly on the checkout below, carrying just the variant and quantity selected on that screen.

Product Detail screen — the sticky footer's Buy Now button is this flow's entry point

What the shopper sees

Visually identical to the cart-based Checkout screen — shipping/billing address, a shipment-tier selector, the price summary, payment-method selection, and a sticky Place Order & Pay bar. The only difference is the “Order Items” card: instead of every line in the cart, it shows exactly the one product, variant, and quantity the shopper picked on the product-detail screen before tapping Buy Now.

What the shopper does here

Every action here — changing addresses, picking a shipment tier, switching payment method (with its live price recalculation), and placing the order — works identically to the cart-based Checkout screen; see that doc for the full mechanics. The one Buy-Now-specific behavior: placing the order does not clear the cart afterward, since nothing was ever added to it for this purchase.

How it’s built

Buy Now bypasses the cart entirely. Tapping Buy Now on the product-detail screen navigates straight here with the product ID, variant ID, and quantity carried as route parameters (Get.toNamed(..., parameters: {...})), not a declared path segment — read once, right after this screen’s controller is constructed.

A non-empty variant ID switches the shared checkout controller into Buy Now mode. The same getCheckoutDetails GraphQL query this screen shares with the cart-based flow is called with those three parameters; the backend resolves a single synthetic order line from them directly rather than reading persisted cart rows, and the response’s own orderItems field — not the cart — becomes this screen’s item source. A stale/invalid SKU on this path is a hard not-found error (there’s no cart row to quietly skip, unlike the cart-based flow’s tolerant handling of a stale line).

Image resolution is handled locally for this path. Cart-sourced checkout items get their images resolved through the cart’s own image-resolution step; since Buy Now never goes through the cart, this screen resolves the one item’s image itself via its own feature-local media lookup, caching the result the same way.

Pricing fields carry the same real discount data as cart items — selling price, strikethrough MRP, and the “You save …” line render identically whether the line came from the cart or from a Buy Now purchase, since both are resolved through the same server-side pricing calculation.

Buy Now Checkout screen — same checkout layout as the cart-based flow, with Order Items showing only the single product picked via Buy Now