Skip to main content

Flutter Installation

Add the Lovina Chat SDK to your Flutter project.

Add the Dependency

Add the package to your pubspec.yaml:

dependencies:
lovina_chat_sdk:
path: packages/flutter # or from pub.dev when published

Then install:

flutter pub get

Platform-Specific Setup

Android

Add the Internet permission in android/app/src/main/AndroidManifest.xml:

<uses-permission android:name="android.permission.INTERNET" />

iOS

The SDK uses HTTPS by default, so no additional setup is needed. For local development with HTTP, add the following to ios/Runner/Info.plist:

<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
caution

Only disable App Transport Security for local development. Always use HTTPS in production.

Verify Installation

Import the SDK in any Dart file to confirm the installation:

import 'package:lovina_chat_sdk/lovina_chat_sdk.dart';

Run your app. If it compiles without errors, the SDK is installed.

Next Steps

Once installed, head to Usage to embed the chat widget in your app.