Rigo-1400 / GymSmart

3 stars 0 forks source link

User drop-down menu #37

Closed AlexanderCastellanosRod closed 1 month ago

AlexanderCastellanosRod commented 1 month ago

As a user, I want to be able to access my profile via a dropdown menu so that I can easily manage my settings and personal information.

AlexanderCastellanosRod commented 1 month ago

Overview

As a fitness user, I want to be able to access my profile via a dropdown menu so that I can easily manage my settings and personal information.

TASKS

  1. Clickable Profile Icon with Dropdown Menu (2-3 Hours) #46

    • [x] Design a circular profile icon using Jetpack Compose’s Image composable.
    • [x] Create a dropdown menu using DropdownMenu from Jetpack Compose.
    • [x] Populate the dropdown with options like “Settings” and “Logout.”
    • [x] Ensure the dropdown is toggled when the profile icon is clicked and closes when clicked again.
  2. Navigate to Settings Page (2-3 Hours) #47

    • [x] Create a new composable for the settings screen.
    • [x] Add a NavController to handle navigation between screens.
    • [x] Connect the “Settings” option in the dropdown to the settings screen.
  3. Implement Logout Functionality (2-3 Hours) #48

    • [x] Make the onclick of the logout
    • [x] Implement the actual logout logic (e.g., clearing session data, navigating to the login screen).
    • [x] Add confirmation dialog (optional) before logging out.