A basic real-time chat application built in Flutter with Firebase Authentication and Cloud Firestore as the backend. Users sign up / log in, then send and read messages in a shared chat stream.
- Email/password authentication via Firebase Auth (
onAuthStateChangedstream). - Login / Signup form on a single Auth page (
auth_form.dart). - Chat page — Firestore-backed message stream with:
new_message.dart— compose & send.messages.dart— stream of messages from Firestore.individual_message.dart— bubble UI, aligned by sender.
- Custom theme (blue primary, green accent, rounded buttons).
lib/
├── main.dart
├── pages/
│ ├── auth_page.dart
│ └── chat_page.dart
└── widgets/
├── auth_form.dart
├── new_message.dart
├── messages.dart
└── individual_message.dart
- Flutter 52B9 (SDK 2.7+)
- firebase_auth ^0.16.0
- cloud_firestore ^0.13.5
flutter pub get
# Add your google-services.json (Android) and GoogleService-Info.plist (iOS)
flutter run