Rontim / JKUAT-CU-App

Welcome to the JKUAT Christian Union App, a mobile application designed to connect students of Jomo Kenyatta University of Agriculture and Technology (JKUAT) with their Christian Union community. The app helps members stay informed, engage with spiritual resources, and participate in CU activities.
0 stars 0 forks source link

Feature: Welcome Controller (User Flow Management) #2

Closed Rontim closed 5 days ago

Rontim commented 1 week ago

Feature: Welcome Controller (User Flow Management)

Issue: #Create_Welcome_Controller

Description:

We need to create a WelcomeController that will manage the initial user flow upon launching the app. The controller will determine if it's the user's first time using the app and whether the user is authenticated or not. Based on these checks, it will navigate to the appropriate screen.

Requirements:

  1. First-Time Check:

    • Use GetStorage to check if it's the user's first time using the app.
    • If it's the first time:
      • Navigate the user to the Sign-Up page.
    • If not the first time, proceed with the authentication check.
  2. Authentication Check:

    • Use GetSecureStorage to check if the user is authenticated.
    • If authenticated:
      • Navigate the user to the Home Screen (Bottom Navigation).
    • If not authenticated:
      • Navigate the user to the Login Page.
  3. GetX Controller:

    • Implement the WelcomeController to handle all the logic for the above checks.
    • Ensure that GetStorage and GetSecureStorage are integrated for persistent data management.
    • Use GetX navigation methods (Get.to() or Get.offAll()) for smooth transitions.
  4. Bindings:

    • Bind the WelcomeController to the WelcomePage using GetX's bindings system.

Additional Notes:

Acceptance Criteria:

Resources: