Flutter UI Walkthrough — Terms & Conditions

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

What the shopper sees

A routed screen titled “Terms & Conditions” rendering the tenant’s Terms policy document, with a bottom “Accept Agreement” button — shown disabled/labeled “Agreement Accepted” once already accepted, or active and tappable if not.

What the shopper does here

  • Reads the policy body.
  • Taps “Accept Agreement” to record acceptance, if not already accepted.

How it’s built

views/terms/ is its own routed Feature Triad, backed by ConsentRepository (not ISettingRepository) talking to user-secure-engine’s GET/PATCH /admin/api/v1/user/consent. isAccepted reads consent.value?.acceptTerms.accepted — a plain boolean, with no comparison against the policy’s current version. The version shown in the body text comes from TenantInfoService.info.value.termsVersion, the same shared aggregate About/Support/Privacy/Returns read from. Accepting calls acceptAgreement(), which records acceptance against that current version — not a value baked into the client build.

Because isAccepted is boolean-only, a shopper who accepted at an earlier policy version sees the button already showing “Agreement Accepted” even against newly-published text — there is no re-acceptance prompt anywhere in this flow today. See TD-00020, TD-01.

Terms & Conditions screen with policy text and Accept Agreement button