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.
This commit is contained in:
soragui
2026-01-19 15:38:36 +08:00
parent 815d2ee7b2
commit 62934e1522
2 changed files with 27 additions and 47 deletions

View File

@@ -9,12 +9,12 @@ environment:
dependencies:
flutter:
sdk: flutter
firebase_core: ^4.3.0
firebase_auth: ^6.1.3
go_router: ^17.0.1
provider: ^6.1.5+1
intl_phone_field: ^3.2.0
pinput: ^6.0.1
firebase_core: 4.3.0
firebase_auth: 6.1.3
dev_dependencies:
flutter_test: