Skip to content

Flutter

Follow these steps to integrate the Aidlab Flutter SDK.

  1. Install Flutter (see the Flutter Installation Guide).
  2. Create a project:
    bash
    flutter create my_project
    cd my_project
  3. Add dependency:
    bash
    flutter pub add aidlab_sdk
  4. 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"/>
  5. Run your app on device/emulator:
    bash
    flutter run