2. 🛠️ Installation & Setup Guide

🔧 Prerequisites

Make sure the following tools and dependencies are installed:

  • Flutter SDK
    • Dart: 3.4.4
    • Flutter DevTools: 2.34.3
    • Flutter SDK archive: flutter_macos_arm64_3.22.3-stable.zip (macOS example)
  • Android Studio (any recent version)

To verify installation:
flutter doctor


🖥️ Setting Up Local Development Environment

The Kleber App supports macOS, Windows, and Linux for development.

  1. Download Flutter SDK and extract it to a suitable location.
  2. Add Flutter to your system path.
  3. Open a terminal and run:
    flutter doctor to ensure your system is ready.
  4. Install Android Studio or Xcode depending on your target platform.

🔁 Cloning the Repository & Installing Dependencies

Follow these steps to clone the Kleber App repo and set up your development environment:

  1. Clone the Repository
    git clone <repo-url>
    cd kleber-app
  2. Install Flutter Dependencies
    git clone <repo-url>
    cd kleber-app

This fetches all required packages listed in pubspec.yaml.

  1. 🚀 Run the App
    flutter run

✅Connect a physical device or use an emulator/simulator..


⚙️ Configuration Files

Set up any required environment or config variables:

Common file locations lib/utils/end_points.dart:

  • baseUrl

🔗 Connecting to InvestGlass Backend

The app communicates with InvestGlass via API calls. You’ll need to choose between staging or production:

  • Staging URL:
    https://staging.investglass.com/client_portal_api/
  • Production URL:
    https://staging.investglass.com/client_portal_api/

To switch environments:

  1. Open lib/utils/end_points.dart
  2. Comment/ uncomment the appropriate baseUrl line
  3. Restart the app