Skip to content

iayr1/OtpValidation

Repository files navigation

OTP Validation

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.

Screenshots

screen1

screen2

screen3

screen4

Features

  • 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.

Technologies Used

  • Flutter
  • Dart
  • JSONPlaceholder API

Installation

  1. Clone the repository:
    git clone https://github.com/iayr1/OtpValidation
    
  2. Navigate to the project directory:
    cd project-directory
    
  3. Install dependencies:
    flutter pub get
    
  4. Run the application:
    flutter run
    

Usage

  1. Open the app on your device or emulator.
  2. Navigate through the screens using the provided functionality.

Contributing

Contributions are welcome! Please follow these steps to contribute:

  1. Fork the repository.
  2. Create a new branch: git checkout -b feature-branch.
  3. Make your changes and commit them: git commit -m 'Add new feature'.
  4. Push to the branch: git push origin feature-branch.
  5. Submit a pull request.

Credits

  • 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.

License

This project is licensed under the MIT License.


Owner: Mayur Chaudhari

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published