Skip to content

E-m-i-n-e-n-c-e/fruit_grading_mobile_app

Repository files navigation

Fruit Grading Mobile App

A Flutter mobile application for grading fruits using image processing and machine learning.

Prerequisites

  • Flutter SDK installed
  • Android Studio / VS Code with Flutter extensions
  • Physical Android device or Emulator for testing
  • Backend server running

Setup Instructions

  1. Clone the Repository

    git clone [your-repository-url]
    cd fruit_grading_mobile_app
  2. Install Dependencies

    flutter clean
    flutter pub get
  3. Configure Server IP Address

    • Open lib/api_service.dart
    • Locate the baseUrl variable
    • Change the IP address according to your setup:
    static const String baseUrl = "http://YOUR_SERVER_IP:5000";
  4. Server Configuration

    • Ensure your server is running
    • Disable firewall on the server machine or configure it to allow incoming connections
    • Test the server connection before running the app

Building and Running

Development Build

flutter run

Release Build

flutter build apk --release

The APK will be generated at: build/app/outputs/flutter-apk/app-release.apk

Common Issues

  1. Server Connection Failed

    • Verify server IP address is correct
    • Check if server is running
    • Ensure firewall is not blocking connections
  2. Build Errors

    • Run flutter clean before rebuilding
    • Ensure all dependencies are properly installed
    • Check if the Android SDK is properly configured

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published