7 Commits

Author SHA1 Message Date
soragui
465cbf3fa5 fix: resolve Dart analysis errors and format code
- Fixed unused field warning in phone_input_screen.dart
- Resolved undefined getter 'isoCode' by removing unused code
- Fixed undefined class 'User' error by adding proper Firebase import in user_model.dart
- Ran dart format to ensure consistent code style across all files
- All analyzer issues are now resolved

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-26 06:40:52 +08:00
soragui
c903430f75 refactor: implement Flutter best practices and proper architecture
- Create proper service layer with AuthService and FirebaseAuthService
- Implement UserModel for proper data representation
- Enhance AuthState with proper loading states and error handling
- Convert stateless widgets to stateful where appropriate
- Add proper form validation and user feedback mechanisms
- Implement comprehensive error handling and loading indicators
- Fix redirect logic in router for proper authentication flow
- Create theme system with light and dark themes
- Add shared components like LoadingIndicator
- Improve code organization following recommended architecture
- Add proper disposal of controllers and focus nodes
- Implement proper null safety handling

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-26 06:35:57 +08:00
soragui
4d0207f41f feat: Implement _LoggedInView UI and AuthState improvements
Implements the UI for the _LoggedInView in home_screen.dart, including:
- An AppBar with a Profile icon that navigates to the profile screen.
- A ListView.builder displaying example items.
- A FloatingActionButton.extended for Logout that calls the `authState.logout()` method.
- Adds a `logout()` method to `AuthState` to clear the login state.
- Modifies the `toggleLogin()` method in `AuthState` to accept an optional boolean value for explicit state control.
- Ensured code formatting and resolved any linting issues.
2026-01-19 15:48:09 +08:00
soragui
fd5f38bd6f feat: Implement _LoggedOutView UI and navigation
Implements the UI for the _LoggedOutView in home_screen.dart, including:
- A centered column layout with an icon, title, and descriptive text.
- An ElevatedButton for Login that navigates to the phone input screen using go_router.
- Ensured code formatting and resolved any linting issues.
2026-01-19 15:45:46 +08:00
soragui
62934e1522 feat: Refactor HomeScreen for login-based UI and restore Firebase dependencies
Refactors the HomeScreen to dynamically display content based on the user's authentication status.
- Migrated HomeScreen from StatefulWidget to StatelessWidget.
- Introduced Consumer<AuthState> to listen for authentication changes.
- Implemented placeholder _LoggedInView and _LoggedOutView widgets for conditional rendering.
- Restored irebase_core and irebase_auth dependencies to pubspec.yaml and main.dart which were inadvertently removed by dart_fix.
- Removed outdated state management for bottom navigation bar.
- Addressed dart fix warnings and ensured code formatting.
2026-01-19 15:38:36 +08:00
soragui
12ff1d61c2 feat: add home and profile screens 2026-01-19 14:56:39 +08:00
soragui
0ade16350a feat: add auth screens and state management 2026-01-19 14:50:21 +08:00