Flutter UI Walkthrough — Shop Screen (Home Dashboard)
What the shopper sees
The Shop screen is the bottom-nav home tab and the app’s landing screen after login. The header carries a typeahead search bar (“Search luxury bags, sneakers, heels…”) and a “Deliver to <pincode>” bar with a Change link. Below that, a “New Arrival Items” hero banner, then five stacked sections in order:
- Categories — a row of category thumbnails (Clothing, Shoes, Bags, …) with a See All link.
- Top Products — numbered #1–#6 ranking badges, star rating + review count, price with strikethrough original price and a “Saved ₹X” line, See All.
- New Arrivals — “FRESH DROPS” badges, See All.
- Flash Sales — “UPTO X% OFF” badges, See All.
- Just For You — filter tabs (All / Clothing / Shoes / Bags), no See All — this is the terminal, full-depth section on this screen.
A trust-badge footer strip (“100% Authentic”, “Fast Delivery”, “Secure Payment”, “Easy Returns”) closes out the scroll.
What the shopper does here
- Taps the search bar to jump to the Search Results screen, or picks a typeahead suggestion/keyword to run that search directly.
- Taps Change to update the delivery pincode/city via a bottom sheet.
- Taps See All on Categories, Top Products, New Arrivals, or Flash Sales to open that section’s own full-grid screen.
- Taps any product card to open its Product Detail screen.
How it’s built
ShopView/ShopController (ui-application/src/lib/features/dashboard/shop/) load the entire screen in one getShopSections(screenType: "shop") GraphQL call. The response is a list of typed section models (CategorySectionModel, TopProductSectionModel, ProductSectionModel for New Arrivals/Just For You, FlashSaleSectionModel, plus a CartSectionModel/DeliveryLocationSectionModel that are read for the cart badge and delivery bar but never rendered as their own section) — ShopSectionBuilder.buildSection maps each into a SectionComponent, rendered in the order the backend returns them. Sections render immediately with raw (unresolved) image paths, then each section’s images are patched in place as its own batched media-access-service call resolves, so section order/layout never waits on the slowest image batch.
