Flutter SDK Installation

Install the Emp-Mix SDK in your Flutter application.

Overview

The Emp-Mix Flutter SDK is built entirely in Dart and supports iOS, Android, Web, macOS, Windows, and Linux. It leverages SQLite (via sqflite) on mobile/desktop and IndexedDB on web for robust offline queueing.

1. Add Dependency

Currently, the package is hosted on GitHub. Add the following to your pubspec.yaml file:

dependencies:
  flutter:
    sdk: flutter
  emp_analytics:
    git:
      url: https://github.com/akshayempyreal/empmix-flutter-sdk.git
      ref: main

2. Fetch Packages

Run the flutter pub get command in your terminal.

flutter pub get

Next Steps

With the package installed, you are ready to configure it in your main.dart file. See the Initialization guide.

Last updated on June 4, 2026