diff --git a/GEMINI.md b/GEMINI.md index bdfbe45..02e3c42 100644 --- a/GEMINI.md +++ b/GEMINI.md @@ -14,10 +14,10 @@ The application is built using the Flutter framework and follows a layered archi ### Key Components: -* **Authentication:** The authentication flow is designed to be handled by Firebase Authentication, but it is currently mocked for demonstration purposes. The `AuthState` class manages the user's authentication state. +* **Authentication:** The authentication flow is designed to be handled by Firebase Authentication, but it is currently mocked for demonstration purposes. The `AuthState` class manages the user's authentication state, now including `logout()` functionality and a more flexible `toggleLogin()` method. * **Navigation:** `go_router` is used for declarative routing and navigation. It includes a redirect mechanism to handle authentication-aware routes. * **State Management:** `provider` is used for state management, with `ChangeNotifierProvider` making the `AuthState` available throughout the app. -* **UI:** The user interface is built with Flutter's Material Design widgets. The screens are designed to be simple and intuitive. +* **UI:** The user interface is built with Flutter's Material Design widgets. The screens are designed to be simple and intuitive. The `HomeScreen` now dynamically renders a `_LoggedInView` or `_LoggedOutView` based on the user's authentication status. ### File Layout: