A Flutter project that demonstrates how to create a contact form with Firebase as the backend service and Bloc for state management. This project includes validation checks on the UI side, OTP verification for phone numbers using Firebase Auth services, and email validation using RegExp.
- Create a contact form with Flutter.
- Use Firebase Firestore for data storage.
- Implement Bloc for state management.
- Validate form input data on the UI side.
- Verify phone numbers using Firebase Auth OTP.
- Validate email addresses using RegExp.
Follow these steps to get the project up and running on your local machine.
-
Clone the repository:
git clone https://github.com/TaRu1369/azodha_assessment
-
Navigate to the project directory:
cd azodha_assessment
-
Install dependencies:
flutter pub get
-
Configure Firebase for the project. You will need to set up Firebase in your Flutter project and configure Firestore and Firebase Auth. Refer to the official Firebase documentation for detailed instructions.
-
Run the app:
flutter run
You can find the complete list of dependencies in the pubspec.yaml
file.
- Launch the app on your device or emulator.
- Fill out the contact form, ensuring that you enter valid data.
- Submit the form, and the data will be stored in Firebase Firestore.
- If you provided a phone number, you will receive an OTP for verification.
- Email addresses will be validated using RegExp to ensure they are in the correct format.