Flutter UI Walkthrough — Log Out

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

What the shopper sees

A confirmation bottom sheet warning that they’ll need to sign in again to access their account, cart, and wishlist, with Cancel and Log Out buttons.

What the shopper does here

  • Taps Log Out to confirm, or Cancel/dismiss to back out.

How it’s built

LogoutSheet is a thin wrapper over the shared ConfirmActionSheet (title + message + confirm/cancel), passing the primary theme color for its confirm button and the copy: “You will need to sign in again to access your account, cart, and wishlist.” Confirming calls SettingController.logout(), which calls AuthService.signOut() → ILocalUserRepository.clearSession() → Get.offAllNamed(AppRoutes.splash) — clearing all local session state and resetting the navigation stack to the splash/auth entry point, rather than just popping back to the previous screen.

Log Out confirmation sheet