The Flutter Iris Prediction App is a mobile application built with Flutter for the frontend and Flask for the backend. This app predicts the species of an iris flower based on input measurements using a machine learning model hosted on a Flask server.
Flutter App Setup
- Clone the repository for the Flutter app:
git clone https://github.com/deep200315/Iris-Prediction.git- Navigate to the project directory:
cd flutter-iris-prediction-app- Install Flutter dependencies:
flutter pub get- Run the Flutter app:
flutter RunFlask Backend Setup
- Clone the repository for the Flask backend:
git clone https://github.com/deep200315/flask-iris-prediction-backend.git- Navigate to the Flask project directory:
cd flask-iris-prediction-backend- Create a virtual environment (optional but recommended):
python -m venv venv
source venv/bin/activate # For Unix/Linux
# or
venv\Scripts\activate # For Windows- Install Flask and required Python packages:
pip install -r requirements.txt- Run the Flask server:
python iris_api.py1.Ensure both the Flutter app and Flask backend are running.
2.Open the Flutter app on an emulator or physical device.
3.Enter the values for sepal length, sepal width, petal length, and petal width into the input fields.
4.Press the "Predict" button to send the input measurements to the Flask backend.
5.View the predicted iris species returned by the backend on the Flutter app interface.
Iris-Prediction: Contains the Flutter mobile app frontend.
flask-iris-prediction-backend: Contains the Flask backend server.
Flutter: Framework for building native applications using Dart.
http: Dart package for making HTTP requests to the backend.
Flask: Web framework used for building the backend server.
scikit-learn: Library for machine learning tasks in Python.
This app was inspired by the classic Iris dataset and demonstrates a full-stack application using Flutter and Flask.


