Flutter UI Walkthrough — Pincode & City

By Engineering Team•October 10, 2026•2 min read

What the shopper sees

A bottom sheet with two fields: “Pincode” (numeric keyboard) and “City” (text), prefilled with the shopper’s current region if one is already saved, and a “Save” button.

What the shopper does here

  • Types a new pincode and/or city.
  • Taps Save to commit the change and close the sheet.

How it’s built

PincodeSheet is a stateless picker — it holds no persisted state of its own beyond the two local TextEditingControllers seeded from the value passed in by the caller. Save calls back into SettingController.updatePincode, which proxies to SettingService, which sends a partial update to user-preference-service’s RegionLocationStrategy — only the pincode/city fields are sent, so other region fields (country, currency, language) are untouched by this save (RFC 7396 Merge Patch, per ADR-00040).

This is the same sheet widget the Shop tab’s own pincode picker opens — because SettingController is a thin proxy over the shared SettingService singleton, a pincode change made from Shop is immediately reflected back on this Settings screen too, with no separate sync step.

Pincode & City bottom sheet