Acai Flutter SDK: publishing and usage notes.

## Steps to publish & use the SDK

### Step 1 — Push the repo to GitHub

```bash
unzip acai_flutter_sdk.zip
cd acai_sdk
git remote add origin https://github.com/Advaita-Intelligence/acai-flutter.git
git push -u origin master
```

Update `pubspec.yaml`'s `repository:` field to match your GitHub URL.

---

### Step 2 — Capture endpoint

Send clickstream events to this URL. Authenticate requests with your project API key.

```
POST https://clickstream.acaiplatform.ai/api/collect
Content-Type: application/json

{
  "api_key": "your-key",
  "events": [{ "event_type": "...", "user_id": "..." }]
}
```

---

### Step 3 — Users add the SDK to their Flutter app

In `pubspec.yaml`:
```yaml
dependencies:
  acai_flutter:
    git:
      url: https://github.com/Advaita-Intelligence/acai-flutter.git
      ref: main
```

---

### Step 4 — Initialize and track events

```dart
import 'package:acai_flutter/acai.dart';
import 'package:acai_flutter/configuration.dart';
import 'package:acai_flutter/events/base_event.dart';

final acai = Acai(Configuration(
  apiKey: 'YOUR_API_KEY',
  serverUrl: 'https://clickstream.acaiplatform.ai/api/collect', // <-- capture endpoint
));

await acai.isBuilt;

// Track events
acai.track(BaseEvent('button_clicked', eventProperties: {'name': 'sign_up'}));

// Identify user
acai.setUserId('user_123');
```

The full README inside the ZIP documents all configuration options, identify, revenue, group tracking, flush, and reset APIs.