GitHunt

EarnOn

A Flutter application for earning and rewards.

Prerequisites

  • Flutter SDK (3.9.2 or higher)
  • Dart SDK
  • Android Studio / Xcode (for mobile development)
  • Git

Setup Instructions

For First Time Setup (Current Device):

  1. Clean existing build artifacts:

    flutter clean
  2. Get dependencies:

    flutter pub get
  3. Initialize Git repository (if not done):

    git init
    git add .
    git commit -m "Initial commit"
  4. Push to remote repository:

    git remote add origin <your-repository-url>
    git push -u origin main

For Setting Up on Another Device:

  1. Clone the repository:

    git clone <your-repository-url>
    cd earnOn
  2. Install Flutter dependencies:

    flutter pub get
  3. Verify Flutter installation:

    flutter doctor
  4. Run the app:

    flutter run

Dependencies

  • cupertino_icons: ^1.0.8
  • font_awesome_flutter: ^10.7.0
  • google_fonts: ^6.1.0

Troubleshooting

If you get dependency errors:

flutter clean
flutter pub cache repair
flutter pub get

If IDE-specific files cause issues:

Delete the following files/folders (they will be regenerated):

  • .idea/
  • *.iml
  • .dart_tool/
  • build/

For platform-specific issues:

  • Android: Ensure Android SDK is installed and ANDROID_HOME is set
  • iOS: Ensure Xcode is installed and CocoaPods is set up
  • Windows/Linux/macOS: Ensure platform-specific toolchains are installed

Project Structure

lib/
├── core/
│   ├── constants/    # App-wide constants
│   ├── routes/       # Navigation routes
│   └── utils/        # Utility functions
├── screens/          # UI screens
└── widgets/          # Reusable widgets
RajlaxmiMeshram/Project | GitHunt