Flutter UI Walkthrough — Delete Account
What the shopper sees
A confirmation bottom sheet warning that this permanently deletes their account, order history, wishlist, and saved addresses, and cannot be undone, with Cancel and Delete Account buttons.
What the shopper does here
- Taps Delete Account to confirm, or Cancel/dismiss to back out.
How it’s built
DeleteAccountSheet wraps the same shared ConfirmActionSheet as Log Out, differing only in copy (“This will permanently delete your account, order history, wishlist, and saved addresses. This action cannot be undone.”) and confirm-button color — it defaults to theme.colorScheme.error rather than passing the primary color explicitly, since ConfirmActionSheet’s default already matches a destructive action.
Confirming calls SettingController.requestAccountDeletion(), but this request currently has no backend endpoint behind it on user-secure-engine or anywhere else — the shopper sees a success confirmation while nothing has actually been deleted server-side. This is the same no-op-stub gap as the Support screen’s complaint flow and the landing screen’s data-export request. See TD-00020, TD-03.
