Flutter UI Walkthrough — Flash Sale (See All)
What the shopper sees
Tapping See All on the Shop screen’s Flash Sales section opens this screen. A back-arrow header reads “Flash Sale” (singular — the header chrome’s title differs from the section’s plural “Flash Sales” label on the Shop screen). The grid shows every card with an “UPTO X%” discount badge. Once the grid is exhausted, a “Big Sale 50%” banner appears, followed by two cross-sell sections: Just For You (See All) and Top Products (See All).
There is no filter icon on this screen — Flash Sale’s grid isn’t filterable server-side.
What the shopper does here
- Scrolls the grid — infinite scroll loads the next page automatically as the shopper nears the bottom.
- Taps a product card to open its Product Detail screen.
- Taps See All on Just For You or Top Products below the banner to jump to those screens.
- Taps Back to return to the Shop screen.
How it’s built
FlashSaleView is the same generalized SearchScreenController triad as Top Products and New Arrivals, tagged 'flash_sale'. The “UPTO X%” badge is computed client-side as hasDiscount ? 'UPTO ${discountPercentage.floor()}%' : null — floored, never rounded, matching shop-service’s own discount-label convention.
Unlike the other section types, sectionType: 'flash_sale' does not route through search-service’s denormalized index. Shop-service’s searchProducts query dispatches on filter.sectionType via a Strategy pattern (FlashSaleSearchStrategy vs. the default GlobalSearchStrategy), and FlashSaleSearchStrategy reads the same offset-aware, Postgres-backed real-time pricing source the Shop screen’s own Flash Sales carousel uses — search-service’s index only covers category/gender/variant/price/discount filter fields, not live flash-sale pricing, so this screen needs its own strategy rather than reusing the generic search path.

Related Documents
- shop-service
- search-service
- Previous: New Arrivals — See All
- Next: Just For You — See All