This project is a frontend application for the InBank loan application service. It is built using Flutter and communicates with the backend API to display loan options and handle loan applications.
- Flutter 3.19.5
- Dart 3.3.3
Running the application requires having Flutter installed. It can be installed by following the instructions in the Flutter documentation for the Web.
Quick links:
You can verify your installation by running flutter doctor
To run the application, follow these steps:
- Clone the repository.
- Navigate to the root directory of the project.
- Run
flutter pub get
to install the required dependencies. - Run
flutter run
to start the application in debug mode.
The InBank Frontend application provides a form for submitting loan applications. The form consists of two sliders for selecting the loan amount and loan period, and a text field for entering the national ID number. The application communicates with the backend API to calculate the approved loan amount and loan period, which are displayed to the user.
The application consists of the following main components:
The LoanForm component displays the loan application form, including the sliders for selecting the loan amount and loan period and the text field for entering the national ID number. It communicates with the backend API to calculate the approved loan amount and loan period based on the form inputs.
The ApiService component provides methods for making API calls to the backend API. It sends loan application information to the backend API and receives a response with the approved loan amount and loan period.