This project is a Flutter application that includes the following screens:
- Login Screen: Allows users to login using their phone number and password.
- OTP Screen: Allows users to verify their phone number using OTP (One-Time Password).
- Forget Password Screen: Allows users to reset their password by providing a new password and confirming it.
The application also integrates with the JSONPlaceholder API to simulate sending OTP and verifying OTP.
- Login Screen:
- Enter phone number and password to login.
- Perform client-side validation of phone number and password.
- OTP Screen:
- Select country code and enter phone number.
- Receive OTP via SMS and enter it for verification.
- Forget Password Screen:
- Enter a new password and confirm it to reset the password.
- API Integration:
- Uses JSONPlaceholder API to simulate sending OTP and verifying OTP.
- Flutter
- Dart
- JSONPlaceholder API
- Clone the repository:
git clone https://github.com/iayr1/OtpValidation
- Navigate to the project directory:
cd project-directory
- Install dependencies:
flutter pub get
- Run the application:
flutter run
- Open the app on your device or emulator.
- Navigate through the screens using the provided functionality.
Contributions are welcome! Please follow these steps to contribute:
- Fork the repository.
- Create a new branch:
git checkout -b feature-branch
. - Make your changes and commit them:
git commit -m 'Add new feature'
. - Push to the branch:
git push origin feature-branch
. - Submit a pull request.
- Flutter - UI toolkit for building natively compiled applications for mobile, web, and desktop from a single codebase.
- JSONPlaceholder - A fake online REST API for testing and prototyping.
This project is licensed under the MIT License.
Owner: Mayur Chaudhari