Flutter
Follow these steps to integrate the Aidlab Flutter SDK.
- Install Flutter (see the Flutter Installation Guide).
- Create a project:bash
flutter create my_project cd my_project - Add dependency:bash
flutter pub add aidlab_sdk - Configure Bluetooth permissions (SDK does not manage permissions or BT state).
- iOS: add to
ios/Runner/Info.plist:xml<key>NSBluetoothAlwaysUsageDescription</key> <string>Your custom message explaining why your app needs Bluetooth access.</string> - Android: in
AndroidManifest.xml:xml<uses-permission android:name="android.permission.BLUETOOTH"/> <uses-permission android:name="android.permission.BLUETOOTH_ADMIN"/> <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/> <uses-feature android:name="android.hardware.bluetooth_le" android:required="true"/>
- iOS: add to
- Run your app on device/emulator:bash
flutter run